Johnny
Johnny

Reputation: 85

C# creating rectangles to place form elements

i need some help on how to create rectangles as separator in my C# form (i don't want group box). Thank you.

Upvotes: 0

Views: 23

Answers (1)

Alex K.
Alex K.

Reputation: 175748

Draw them?

protected override void OnPaint(PaintEventArgs e) {
    base.OnPaint(e);
    e.Graphics.DrawRectangle(Pens.Red, new Rectangle(10, 10, 100, 100));
}

Upvotes: 2

Related Questions