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
|