Window Maximize Problem
-
Hi ! I've created my custom browser using the AxSHDocVw.AxWebBrowser The object created is called with in a form that I developed. Now when I maximize the parent window the child window ( the AxWebBrowser ) is not maximized with it. I've used the following piece of code to handle the problem bu tit doesn't seem to work. this.myBrowserInstance = new AxSHDocVw.AxWebBrowser(); InitializeComponent() { ... this.MaximizedBoundsChanged += new System.EventHandler(this.Form1_Maximize); ... } private void Form1_Maximize(object sender, System.EventArgs e) { ... System.Drawing.Size sizeOfBrowser = new System.Drawing.Size (this.MaximizedBounds.Width - 10, this.MaximizedBounds.Height - 10); myBrowserInstance.ClientSize= sizeOfBrowser; ... } Please help ! Thanx in Advance !! :(:((:((
-
Hi ! I've created my custom browser using the AxSHDocVw.AxWebBrowser The object created is called with in a form that I developed. Now when I maximize the parent window the child window ( the AxWebBrowser ) is not maximized with it. I've used the following piece of code to handle the problem bu tit doesn't seem to work. this.myBrowserInstance = new AxSHDocVw.AxWebBrowser(); InitializeComponent() { ... this.MaximizedBoundsChanged += new System.EventHandler(this.Form1_Maximize); ... } private void Form1_Maximize(object sender, System.EventArgs e) { ... System.Drawing.Size sizeOfBrowser = new System.Drawing.Size (this.MaximizedBounds.Width - 10, this.MaximizedBounds.Height - 10); myBrowserInstance.ClientSize= sizeOfBrowser; ... } Please help ! Thanx in Advance !! :(:((:((
This code is irrelevant. To make sure the web browser is maximized or scaled accordingly to the parent window, you can use anchors/docks from the IDE / Properties.
-
This code is irrelevant. To make sure the web browser is maximized or scaled accordingly to the parent window, you can use anchors/docks from the IDE / Properties.
Thank you very much :)