Home All Groups Group Topic Archive Search About

Positioning Other Applicaitons

Author
31 Jul 2006 2:58 AM
Nathaniel
I am seeking to write code that will allow me to position OTHER forms
besides my own. Currently I use a 3rd party program called Windows Manager.



http://www.download.com/Windows-Manager/3000-2094_4-10493884.html?tag=lst-0-6



This program allows me to chose an application, and position it where I want
to (in terms of position to the top left pixel of the application. Similar
to:

Location X: 34

Location Y: 353



Vb.net code:

[Me.Location = New Point(34, 353)]



However, I want to do this same procedure in my code. Is there any way of
somehow writing:



THATAPPLICATION.Location = New point(x, y)

Author
31 Jul 2006 3:15 AM
iwdu15
your going to need to use APIs for this. look at allapi.net for a list of
them....heres a few that might help you out.

http://allapi.net/apilist/FindWindow.shtml
http://allapi.net/apilist/MoveWindow.shtml


you can also get the handle of a window via the Process object.....

hope this helps

--
-iwdu15