|
|
Christian, you rock. You've saved me a lot of hassle (considering I'm trying to develope a multimonitor screensaver without the advantage of testing it on multiple monitors of my own, having to rely on the patience of a friend of mine).
Once again, you rock. Thank you for sharing your knowledge. May future generations of C# geeks sing your praise.
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
*grin* I'm glad you found it useful.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am setting up a http server and I don't want to have to choose the port number. I want the operating system to choose an available port for me. Does anyone know if this is possible?
|
|
|
|
|
If you are using Sockets for setting up your http server then all you have to do is to specify 0 as the port number when creating a socket object. This will use any available port number.
|
|
|
|
|
plz guide me of sorting Data in a dataset and a datatable.
thx
Bye
|
|
|
|
|
Hello
Relational Databases -most of current DBMS are relational as you know-, don't really know about sorting data in its tables. On the other hand it can view data in a sorted manner. So to sort a data you should make a DataView object, and use it to display the data the way you want.
Regards
|
|
|
|
|
i didnt tried it but i guess it will work
save connection string to some variable
add order by "name of the column" to the end of the connection string
fill your dataset
and restore the connection string from the variable
yeah i know its not the proper meathod but until you cant find it use it
and remember to share when you find it
|
|
|
|
|
Lets say i do this:
DataRow dr1 = dataset1.Tables[0].NewRow();
I want to add dr1 to dataset2 but it says it is already in another dataset (dataset1)
how can i clone/duplicate/copy dr1 so that i may add it to dateset2 as well?
thanks!
|
|
|
|
|
Hello
Use DataTable.ImportRow() method.
Regards
|
|
|
|
|
Hi,
I have some MDI children forms that are laid out (sometimes one on top of the other).
At a given time, I need to find out which forms are on top and which forms are hidden behind the forms on top.
I Iwas wondering if there's some way to do this. I could not find anything online.
Thank you,
Ramanan
"One of the Georges," said Psmith, "I forget which, once said that a
certain number of hours' sleep a day--I cannot recall for the moment how
many--made a man something, which for the time being has slipped my
memory."
|
|
|
|
|
Hello
Use MyMDIChildClass.ActiveForm static property.
Regards
|
|
|
|
|
Hi,
I can't really use that because I want to also know which inactive forms are on top, and which ones are on the bottom.
For instance I can have 8 child forms open in a 2x2 layout with 4 on top and 4 below. I want to know which 4 are on top. Of course, only one of them is active and has focus. But I want to get a list of all 4.
Thanks,
R
"One of the Georges," said Psmith, "I forget which, once said that a
certain number of hours' sleep a day--I cannot recall for the moment how
many--made a man something, which for the time being has slipped my
memory."
|
|
|
|
|
I don't know if there is a function or a property to get the Z-Order of a form!! You can BringToFront() or SendToBack() but it isn't what you want!!
All I can think of is to track your Z-Order manually. When a form is clicked and activated it should update its Z-Order in a static list in the MDIChild class sending all other forms behind. This way you will check the list for the order of forms.
Regards
|
|
|
|
|
|
i had implemented the same thing using a arraylist
WHen a form is opened or clicked it is added to the ArrayList,
so u get the forms in the reverse order of the Arraylist.
Hope that works for you.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Is there any Windows Forms components that allow to sort the content of a table by the column? That is the user press the name of the column and the table is ordered ascending and descending.
And furthermore, there is a component that allow to search using one field or several of the table?
Now we use DataTable.
Thank you
|
|
|
|
|
Hello
123456uio wrote: Is there any Windows Forms components that allow to sort the content of a table by the column?
DataGridView does that by default, and you can still do that in a ListView also by handling the ColumnClick event and sort the items youself.
123456uio wrote: component that allow to search using one field or several of the table?
Well, you can do this several ways, but a built-in method?!! I don't know! You can still search a ListView with FindItemWithText() method, but as long as you got a DataTable I prefer searching the table rather than the control.
Regards
|
|
|
|
|
Hey all,
I'm using SharpPcap to capture incomming and outgoing packets.
I can get the IP and port of the pack.
How can I tell which process is using the pack?
Thanks in advance,
Shy.
|
|
|
|
|
Run this at the command prompt:
netstat -b
This will show port no associated with the associated binaries.
|
|
|
|
|
Hmm... I'm afraid it's not gonna do me any good...
I need my application to determine that by itself...
I can pipe the result of running "netstat -b" and analyze it, but that's not the way I'm looking for...
Thanks for trying though...
Any other ideas?
|
|
|
|
|
i read an article on msdn. they say it's imposible for 2 radiobuttons to be checked if they are on the same container! is it?
rzvme
|
|
|
|
|
Yes. Radiobuttons in the same container can only have one of them selected. If you want more than one item, use an array of CheckBoxes instead.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
thought so. But i need the apperence of a radio button , and , apparrently, the behavieur of a check box. how can i do that? custom controls??
rzvme
|
|
|
|
|
I can tell you that would confuse people. They don't expect a radio button to work that way. It can be done, but you'd have to draw the control yourself.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|