How can I maximize a process window
I am using the Process class in System.Diagnost ics. I can
identify the specific process I want using the window
title after that I want to maximize the window. I can get
the handle for the window using MainWindowHandl e how do I
maximize the window ?
Thanks,
Sanjay
Process[] myProcess;
myProcess = Process.GetProc essesByName("pr ocess_name");
foreach (System.Diagnos tics.Process instance in
myProcess)
{
string windowTitle = instance.MainWi ndowTitle;
if ( windowTitle == "WINDOW_TIT LE" )
{
// How can I maximize the window here ??
void *windowHandle =
instance.MainWi ndowHandle.ToPo inter();
}
}
I am using the Process class in System.Diagnost ics. I can
identify the specific process I want using the window
title after that I want to maximize the window. I can get
the handle for the window using MainWindowHandl e how do I
maximize the window ?
Thanks,
Sanjay
Process[] myProcess;
myProcess = Process.GetProc essesByName("pr ocess_name");
foreach (System.Diagnos tics.Process instance in
myProcess)
{
string windowTitle = instance.MainWi ndowTitle;
if ( windowTitle == "WINDOW_TIT LE" )
{
// How can I maximize the window here ??
void *windowHandle =
instance.MainWi ndowHandle.ToPo inter();
}
}
Comment