Process p = new Process();
p.StartInfo.FileName = "IExplore.exe";
p.StartInfo.Arguments = target; //target is a string -- this is the link that I'm opening
p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
p.Start();
p.StartInfo.Arguments = target; //target is a string -- this is the link that I'm opening
p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
p.Start();
I know I have to use API. I tried to use below code, but the window is not resizing. What happens is it sticks to the previous location and size of the previous internet explorer that I executed. Say I opened an IE, resized it manually to 300 x 300. The next time I click the button and call my functions to resize, it still opens the 300 x 300 that I left.
|
Thanks a lot!
nonePosted Jul 8, 2010, 3:05 AM
int height = rect.Bottom - rect.Top;
width and height are here the size of your window.
MoveWindow(hWnd, rect.Left, rect.Top, width, height, true)
and here... u set the same size