Ronald S. Cook said:
This was exactly what I needed John.. thanks.
Any chance you can tell me how to control the X, Y position of where it
appears on the screen (and size of window)?
You might need P/Invoke... although I don't see a managed version, the
STARTUPINFO structure used by Win32 CreateProcess has
dwX
If dwFlags specifies STARTF_USEPOSITION, this member is the x offset of the
upper left corner of a window if a new window is created, in pixels.
Otherwise, this member is ignored.
The offset is from the upper left corner of the screen. For GUI processes,
the specified position is used the first time the new process calls
CreateWindow to create an overlapped window if the x parameter of
CreateWindow is CW_USEDEFAULT.
dwY
If dwFlags specifies STARTF_USEPOSITION, this member is the y offset of the
upper left corner of a window if a new window is created, in pixels.
Otherwise, this member is ignored.
The offset is from the upper left corner of the screen. For GUI processes,
the specified position is used the first time the new process calls
CreateWindow to create an overlapped window if the y parameter of
CreateWindow is CW_USEDEFAULT.
dwXSize
If dwFlags specifies STARTF_USESIZE, this member is the width of the window
if a new window is created, in pixels. Otherwise, this member is ignored.
For GUI processes, this is used only the first time the new process calls
CreateWindow to create an overlapped window if the nWidth parameter of
CreateWindow is CW_USEDEFAULT.
dwYSize
If dwFlags specifies STARTF_USESIZE, this member is the height of the window
if a new window is created, in pixels. Otherwise, this member is ignored.
For GUI processes, this is used only the first time the new process calls
CreateWindow to create an overlapped window if the nHeight parameter of
CreateWindow is CW_USEDEFAULT.