Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a webpage with a windows form

Status
Not open for further replies.

nwruiz

Programmer
Jun 22, 2005
60
US
Hello,

I am currently trying to add an onclick event to a control that would open a specific webpage. How do I use C# to open a website in a new window? This is a normal Windows application Thanks for your time.

Nick Ruiz
CO-OP Intern, PPL Electric Utilities
Webmaster, DealMerchant.net
 
The best thing I can think of, is to include the WebBrowser control inside a new Windows Form. Then write a function in that form similar to this:

public void ViewWebpage(string url)
{
axWebBrowser1.Navigate(url);
}

 
Try this one:

Code:
System.Diagnostics.Process.Start("[URL unfurl="true"]http://www.tek-tips.com");[/URL]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top