Evbpc.Framework.Windows.Forms.Form.SetDesktopBounds C# (CSharp) Method

SetDesktopBounds() public method

Sets the bounds of the form in desktop coordinates.
https://msdn.microsoft.com/en-us/library/system.windows.forms.form.setdesktopbounds(v=vs.110).aspx
public SetDesktopBounds ( int x, int y, int width, int height ) : void
x int The x-coordinate of the form's .
y int The y-coordinate of the form's .
width int The width of the form.
height int The height of the form.
return void
        public void SetDesktopBounds(int x, int y, int width, int height)
        {
            OnResizeBegin(new EventArgs());
            Location = new Point(x, y);
            Size = new Size(width, height);
            OnResize(new EventArgs());
            OnResizeEnd(new EventArgs());
        }