NewWindow2 and MDI form problem (C#) - Please
From: Mike Z (anonymous_at_discussions.microsoft.com)
Date: 04/22/04
- Previous message: SysAdmin_at_vs.shawcable.net: "IMPORTANT ANTI VIRUS INFORMATION"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Apr 2004 16:31:03 -0700
Hi! I am trying to create a C# application that has one MDI form with embedded WebBrowser control.
When a user clicks on one of the links, the JavaScript window.open() function will open a new window.
I want this new window be displayed as the MDI Child to the original window. I have the following code
on Form1 (parent):
private void axWebBrowser1_NewWindow2(object sender, AxSHDocVw.DWebBrowserEvents2_NewWindow2Event e)
{
Form2 frmWB;
frmWB = new Form2();
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//frmWB.MdiParent = this;
frmWB.axWebBrowser2.RegisterAsBrowser = true;
e.ppDisp = frmWB.axWebBrowser2.Application;
frmWB.Visible = true;
}
Problem: As soon as I uncomment //frmWB.MdiParent = this; I can not span the MDI Child window.
Nothing happens. Is this a bug? What can I do to avoid/bypass/fix etc?
Your help is greatly appreciated!
- Previous message: SysAdmin_at_vs.shawcable.net: "IMPORTANT ANTI VIRUS INFORMATION"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|