Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2003

Tip: Looking for answers? Try searching our database.

WebBrowser in MDI Child

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Josh Larkin - 30 Sep 2003 00:39 GMT
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
Josh Larkin - 30 Sep 2003 13:26 GMT
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

>-----Original Message-----
>Hi, Im having a problem with the WebBrowser Control in an
[quoted text clipped - 23 lines]
>CJL
>.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.