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 #
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nikola 04 reputationPosted Jan 10, 2006, 11:06 AM EST
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");