Configuring the Controls

We set the following recommended settings of the controls:

  • For the main form (Form) that contains all of the controls:
    • (name) = FormPointAndRectangle
    • Text = Point and Rectangle
    • Font.Size = 12
    • Size = 700, 410
    • MinimumSize = 500, 400
    • FormBorderStyle = FixedSingle
  • For the fields for entering a number (NumericUpDown):
    • (name) = numericUpDownX1; numericUpDownY1; numericUpDownX2; numericUpDownY2; numericUpDownX; numericUpDownY
    • Value = 2; -3; 12; 3; 8; -1
    • Minimum = -100000
    • Maximum = 100000
    • DecimalPlaces = 2
  • For the button (Button) for visualization of the rectangle and the point:
    • (name) = buttonDraw
    • Text = Draw
  • For the text block for the result (Label):
    • (name) = labelLocation
    • AutoSize = false
    • BackColor = PaleGreen
    • TextAlign = MiddleCenter
  • For the field with the draft (PictureBox):
    • (name) = pictureBox
    • Anchor = Top, Bottom, Left, Right

results matching ""

    No results matching ""