Open a URL from Windows Forms
Suppose i want to open a site on button click.Thn on button click i simply write the following code.
Add System.Diagnostics namespace.
Button_Click
{
ProcessStartInfo sInfo = new ProcessStartInfo("http://Google.com/");
Process.Start(sInfo);
}
Add System.Diagnostics namespace.
Button_Click
{
ProcessStartInfo sInfo = new ProcessStartInfo("http://Google.com/");
Process.Start(sInfo);
}
Labels: Open a URL from Windows Forms
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home