vb.net - Launch an application and send it to second monitor -
In 2008 VB 2008, I'm using class 'process' and external application to launch with some parameters. Does anyone know how can I send a program to another monitor?
In addition, do you know how many monitors are active?
Thank you.
You can find your form on a different screen.
form.Location = Screen.AllScreens (1) .bound. Location + New point (100, 100) When you launch an application, use the process handle to get the window (hwnd). This is the HWW value that uses the Windows API.
You must use the SetWindowRect method imported from User32.dll (see the last link)
See also