WebBrowser in MDI Child

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
 
J

Josh Larkin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top