|
hi
can you provide me some link for any good artcle using code snippets
or some tips for them
thanks
|
|
|
|
|
Here in code project itself you can get a lot. You can get that Here[^]
Best Regards,
Apurva Kaushal
|
|
|
|
|
See www.codeproject.com or www.codeguru.com
|
|
|
|
|
I'm trying to set the desktop location of my program to a certain location on the overall desktop (between all monitors). It comes up in the right location, but only on the monitor from which it was launched. I want it to come up at location (0,0) of the left-most monitor, not (0,0) on the monitor it was launched from.
How do I do that (regardless of how the user has set up their monitor locations)?
I'm trying to do my own screensaver that spreads itself across all monitors, not just duplicates itself on each. I tried to maximize it, but it maximizes only on one monitor, not all of them...
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
Take a look at the Screen class, this has a PrimaryScreen property as well as a Screens property which may be of some help to you.
|
|
|
|
|
Yeah, I started with that. Not working right.
I'll keep on it. I was just hoping that someone knew of a better way...
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
Sorry it wasn't much help, I'll investigate if I get the chance.
|
|
|
|
|
This link may or may not be of help:
http://www.realtimesoft.com/multimon/programming/basics.asp
|
|
|
|
|
You need to iterate over the Screens collection and find out which screen has the leftmost position. Take a look at the screensaver I wrote with James T Johnson, it's a CP article, and it ran multimonitor. I'm writing an app now that runs on as many monitors as are running, the Screens collection has never let me down.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Before I start searching, can you provide a keyword or URL for me? (for the article)
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
|
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
|
|
|
|
|