Creating a New C# Project and Adding Controls

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 (NumericUpDown).
  • 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 (Label).

We set the sizes and properties of the controls to look as close as the ones in the picture:

results matching ""

    No results matching ""