packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.cs
/// <summary>
/// Sizes the native control to match the WinForms control wrapper.
/// </summary>
/// <param name="e">Contains information about the size changed event.</param>
Sizes the native control to match the WinForms control wrapper.
Sizes the native control to match the WinForms control wrapper .
protected override void OnSizeChanged(EventArgs e)
        {
            if (explorerBrowserControl != null)
            {
                NativeRect rect = new NativeRect();
                rect.Top = ClientRectangle.Top;
                rect.Left = ClientRectangle.Left;
                rect.Right = ClientRectangle.Right;
                rect.Bottom = ClientRectangle.Bottom;
                IntPtr ptr = IntPtr.Zero;
                explorerBrowserControl.SetRect(ref ptr, rect);
            }
            base.OnSizeChanged(e);
        }
protected override void OnSizeChanged ( EventArgs e ) { if ( explorerBrowserControl != null ) { NativeRect rect = new NativeRect ( ) ; rect . Top = ClientRectangle . Top ; rect . Left = ClientRectangle . Left ; rect . Right = ClientRectangle . Right ; rect . Bottom = ClientRectangle . Bottom ; IntPtr ptr = IntPtr . Zero ; explorerBrowserControl . SetRect ( ref ptr , rect ) ; } base . OnSizeChanged ( e ) ; }
Sizes the native control to match the WinForms control wrapper.
Sizes the native control to match the WinForms control wrapper .
e
EventArgs
Contains information about the size changed event.
Contains information about the size changed event .