|
Each element in your array needs to be of the type of a control that you create to include those components. If it's an instance of the tab page, then it's just going to have the standard tab page elements. And that means you need an array of tab pages, and to cast each one as you need to. I think you need to reconsider your design.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have a datagrid with one checkbox in each row and i have a no. of rows. How can I find programmatically the row no.s in which the checkboxes are checked?
-- modified at 8:18 Wednesday 25th April, 2007
|
|
|
|
|
Hi!
i am developing application in C# 2005, i want to minimize my application into system tray when user press the minimize button. i saw few articles and demo projects regarding this but could not understand that how i will implement them in my application.
Is there any built in method provided by dotnet for this purpose?
Thanks in advance...
Regards,
Affan Ahmad Toor
|
|
|
|
|
one way to do this like make Control Box false.
then Create your own minimize box adding one button.
and on Minimizebutton Click write
this.Hide()
Sanjit.rajbanshi@wlinktech.com
|
|
|
|
|
|
|
Hi,
I have designed a Form with Graph,and with some log messages displayed in
ListBox and a DataSet with DataTable which will get populated at runtime.
How can i save the entire Form with its contents.
With Thanks,
Sakthi.
|
|
|
|
|
Check the Code project site for articles about Serialization. There are many possibilities to choose, depending on your needs.
|
|
|
|
|
make your form object serilizable to save it
Amr Abdel-Mohsen Hafez
Software engineer
Cairo
E g y p t
|
|
|
|
|
I want to save the form with its current data and open it directly whenever i
want Just like exe
Regards
Sakthi
|
|
|
|
|
Hi,
I would like to know how to call the webservice (SOAP\HTTPS) over https connections in c#, please point me to the article.I'm finding articles for http but not for https.
Thank you
Mohan
|
|
|
|
|
You set up the https in the properties of the web service. If you go into iis manager find your web service right click properties. On the web site tab you set the ssl port to 443. You need to have a certificate for ssl to work. Then your address to your web service will be https:
Hope that helps.
Ben
|
|
|
|
|
Dear All,
Please let me know how can I implement Windows Authentication for a windows application using c# ?
Thanx & Regards
|
|
|
|
|
Mr Perfect wrote: Please let me know how can I implement Windows Authentication for a windows application using c# ?
Well, it should already be running in the context of the user that launched it. So you just need to get hold of the current Identity:
using System.Security.Principal;
...
WindowsIdentity wi = WindowsIdentity.GetCurrent();
From there you can get hold of various information that you would likely find useful.
|
|
|
|
|
If there was something wrong with the answer I gave, please let me know. Don't vote me down indiscriminately.
|
|
|
|
|
Hi.
I have a string representing the contents of an xml file with utf-16 encoding and i want to change it to utf-8. I want to replace the whole header of the xml to be sure that only one occurrence will be found within the string by the Replace() method of the string class.
So all I want is this:
<?xml version="1.0" encoding="utf-8"?>
instead of this:
<?xml version="1.0" encoding="utf-16"?>
How do I deal with the double quotes that appear in the string?
How should I write the arguments of the Replace() method in this case?
Thanks.
|
|
|
|
|
If I am correct, i was struggling with the same problem yesterday.
Before the " char, you have to place a \ char so that the compiler does not see it as a string type.
Marquin
|
|
|
|
|
I found the answer:
<code>Replace("<?xml version=\"1.0\" encoding=\"utf-16\"?>", "<?xml version=\"1.0\"encoding=\"utf-8\"?>")</code>
|
|
|
|
|
|
Hi, I used one excellent article from Code Project to build a TCP server in C# (.Net 2.0) with System.Net.Sockets and it's working great. I only have a minor issue:
The server is reasonably fast to provide answers, the round trip is usually less than 50ms. But some clients split their requests in 2 packets and the server has to wait for the last packet before it can provide an answer. In those situations the round trip time becomes close to 200ms because the server ACK to the first packet is delayed around 150ms. The only way I've found to go around this is to let the server reply to the first packet with a single space character: the client ignores it and the delay is minimal when the server has something to reply.
I tried to set NoDelay = true on the socket but it has no effect on this problem. Are there any other options I am missing?
Thanks!
|
|
|
|
|
How do you separate a string into two strings?
string s = "hello:you";
sting left;
string right;
for example the string above should return:
left = "hello";
right = "you";
Please note that the left and right strings of the separator i.e. : can vary
Thanks
|
|
|
|
|
string[] stringarray = s.Split(':');
|
|
|
|
|
i want to Open Folder Option,My Network Places, Map Network Drive, Disconnect Network Drive, Search Files and Folder.
i use following code :
System.Diagnostics.Process.Start("explorer.exe", "My Network Place");
but not Works?
Sanjit.rajbanshi@wlinktech.com
|
|
|
|
|
hey...
I am working on an application that used the complete form for drawing(using openGL) but the problem is that after I add menus to my application the menus are not displayed at run-time....
kindly tell how to solve this problem??
someone also suggeted to use of panel how to setup panel for drawing in C#?/
thanks
|
|
|
|
|
You probably would find it easier to use DirectX. If you must use OpenGL, then I'd use C++, you're not going to be doing much directly in C#, I would expect.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|