opening a URL
-
How make a program in C# which connect any URL(like www.google.com)and when user click on button(whatever enter on the textbox like(www.google.com))it open the page.
-
How make a program in C# which connect any URL(like www.google.com)and when user click on button(whatever enter on the textbox like(www.google.com))it open the page.
System.Diagnostics.ProcessStartInfo pi =new System.Diagnostics.ProcessStartInfo(this.website.Text); System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo = pi; p.Start();
This works as long as it starts with www or http://. However, this is open to exploitation, so filtering may be in order. Also,website
is a textbox. -
How make a program in C# which connect any URL(like www.google.com)and when user click on button(whatever enter on the textbox like(www.google.com))it open the page.
-
How make a program in C# which connect any URL(like www.google.com)and when user click on button(whatever enter on the textbox like(www.google.com))it open the page.
put this code in button click or under menu click System.Diagnostics.Process.Start("http://www.google.ba");
-
put this code in button click or under menu click System.Diagnostics.Process.Start("http://www.google.ba");