Tuesday, May 5, 2009

Open remote URL in Maximize window

public static void mOpenFile(string URL)
{

Screen scr = Screen.PrimaryScreen;
int oldWidth = scr.Bounds.Width;
int oldHeight = scr.Bounds.Height;
Process proc = new Process();
proc.StartInfo.FileName = URL; // put full path in here
proc.StartInfo.WindowStyle =ProcessWindowStyle.Maximized;
proc.Start();
proc.Dispose();
}

No comments:

Post a Comment

 
Locations of visitors to this page