WebBrowser in MDI Child

  • Thread starter Thread starter Josh Larkin
  • Start date Start date
J

Josh Larkin

Hi, Im having a problem with the WebBrowser Control in an
MDI app. I'm using 1.1 Framework and c#.

To recreate:
1. Create Windows App.
2. Set Form1 in the new project to be an MDI container.
3. Add a menu item.

4. Add another form to the project.
5. Add the WebBrowser Control to the form. Set to fill.
6. Handle the on load event. Call the navigate2 method
and nav to a valid site

6. Handle menu item's click event in Form1. In the
handler, create Form2, set mdiparent, call show

7. Not that the page never shows up in the control.

change step 6 to NOT set mdi parent and run again - page
shows up.

Help!
Thanks,

CJL
 
Found a workaround. If I create a user control, place
the web browser on the user control, and then place the
user control on form 2, the problem goes away.

Any Ideas why? Messaging Problem?

CJL
 
Back
Top