Link to home
Start Free TrialLog in
Avatar of Elvio Lujan
Elvio LujanFlag for Argentina

asked on

Process

hi how i can to set the position of an process?
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

What do you mean by "position"?

Bob
Avatar of Elvio Lujan

ASKER

the start location in the screen
Is this your application, or an external form?

Bob
an external form
There is a MoveWindow API call (which takes a handle), along with FindWindow (to retrieve the handle).

Bob
ok but what's the code? to do it
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok. but i'm making my soft in vb.net
that are vb 6 instructions
Not, those are VB.NET instructions.  IntPtr is not a VB6 type.  If you are looking for something within the Framework, I don't think that you are going to find it.

Bob
ok this work... but only in the first time...

i'm working with an process this way


        processppt.Start()

        MoveExternalWindow(processppt.MainWindowTitle, 300, 200)