WindowHelper.Win32Window.UpdateSize C# (CSharp) Method

UpdateSize() public method

public UpdateSize ( int width, int height ) : void
width int
height int
return void
        public void UpdateSize(int width, int height)
        {
            WinAPI.MoveWindow(this.Handle, 0, 0, width, height, false);
        }

Usage Example

コード例 #1
0
        //public void EnableDockChangedEvent()
        //{
        //    Resize += new EventHandler(MapBasicWindowForm_Resize);
        //    DockChanged += new EventHandler(MapBasicWindowForm_DockChanged);

        //}

        private void MapBasicWindowForm_Resize(object sender, EventArgs e)
        {
            if (_mapBasicWindow != null)
            {
                _mapBasicWindow.UpdateSize(_pictureBoxWindow.Width, _pictureBoxWindow.Height);
            }
        }