The following code example shows the width of the form set to 300 pixels from the left edge of the form, whereas the height stays constant.
However, as the following code example shows, this approach is more cumbersome than just setting Width or Height properties.
Form1.Size = New Size(300, Form1.Size.Height)
Form1.Size = new Size(300, Form1.Size.Height);
Form1.set_Size(new Size(300, Form1.get_Size().get_Height()));
Form1->Size = System::Drawing::Size(300, Form1->Size.Height);