How to open a web page as a child form in mdi fom
2 Answers
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
Josip Juric118 reputationPosted Dec 10, 2010, 6:26 AM EST
this.IsMdiContainer = true;
Form childForm = new Form();
WebBrowser wb = new WebBrowser();
childForm.MdiParent = this;
childForm.Size = new Size(657, 482);
childForm.Controls.Add(wb);
wb.Dock = DockStyle.Fill;
//here you enter page that you want to show
wb.Navigate("YourPage");
childForm.Show();
Sam HobbsRank #107 · 20.5K reputationPosted Dec 10, 2010, 3:50 PM EST