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());
}