PC Review


Reply
Thread Tools Rate Thread

AxHost'ed WebBrowser Control Win Forms hosting problems! (or bugs?)

 
 
Microsoft MSDN Newsgroups
Guest
Posts: n/a
 
      11th Dec 2003
Hi All!

When developing financial app I have just encountered problem in using
AxHost WebControl created from SHDocVw.dll.
In my app it is included in MDIChild Windows Form control - BrowserForm.
After or without any customization and inclusion into Windows.Form app as a
MDIChild I have problems with changing focus to BrowserForm windows with
mouse clicks and surprisingly everything works fine with Infragistic
UltraTabbedMDIManager when in tabbed view.

Next problem arisies when switching between tabbed and MDI layout at
run-time programatically. Focus change between child Browser windows in MDI
view is not handled properly, moreover, problem propagates to other MDIChild
Forms which work perfectly when no BrowserForm is present.

Most serious problem I have seen so far arises when switching back to tabbed
view from MDI at run-time. Browser seems to lose control of client window
size and draws itself either at previous size (when tab is deselected and
selected again - than it is again OK) or at some undetermined situations (i
can not find any particular conditions at which to repeat that behaviour) it
draws itself outside application area (even MDIParent) it seems that instead
of window rather at desktop coordinates.

I do assume that browser loses somehow handle to window in which it should
draw and catches handle to desktop (?) but I have no idea how to overcome
that problem! Obviosly the problem with focus change is mysterious for me as
well!

Waiting for any syggestions.

Jacek


PS
VS.NET does not allow for change between tabbed and mdi view at run-time -
you have to start next session - is it runtime switch problem? But in this
same VS.NET multiple browser forms coexist without any focus problems!

I have posted this news to interop newsgroup as well


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosting WebBrowser control, NewWindow3, and window.opener problems =?Utf-8?B?TmVpbA==?= Windows XP Internet Explorer 3 24th Mar 2008 12:44 PM
hosting a c# custom control in webbrowser Peted Microsoft C# .NET 4 10th Sep 2007 03:26 PM
Hosting webbrowser control in Form and specifying Browser type George Microsoft C# .NET 1 17th Jan 2007 11:25 PM
Hosting a WebBrowser control in a web page jmi0@att.net Microsoft Dot NET Framework 3 28th Jan 2006 08:35 AM
Hosting of MS WebBrowser Control on Web application Margarita Microsoft C# .NET 0 12th Aug 2003 11:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:16 PM.