display a web page on a windows form?
Whats the best way to display a web page on a windows form? i'm using VS.NET 2003 and C #
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nikola 0Posted Jan 10, 2006, 4:06 PM
You will have to add the Microsoft Web Browser COM component to your toolbox. Go to Add/Remove Toolbox items in Visual Studio to do this.
Drag the control to your form.
To navigate to a webpage add this in your code:
axWebBrowser1.Navigate("http://www.yahoo.com");