SimpleShape.SetBounds Method (Int32, Int32, Int32, Int32)
Sets the bounds of the shape to the specified location and size.
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
You can use themethod to change a shape's size and location in a single statement.
The following example shows how to use the SetBounds method to change the size and location of a shape. Specifically, the shape is moved to the upper-left corner of the form and changed to a square. This example requires that you have a RectangleShape control named RectangleShape1 on a form.