We create a new project Windows Forms Application with a suitable name, for example “Point-and-Rectangle”:
We arrange the controls inside the form, as it is shown in the figure below:
- 6 boxes for entering a number (
- Labels (
Label) before each box for entering a number.
- A button (
Button) for drawing the rectangle and the point.
- A text block for the result (
We set the sizes and properties of the controls to look as close as the ones in the picture: