pmichna
pmichna

Reputation: 4888

How to make a dotted border style in Windows Forms?

I'm trying to change the border style of my form using Windows Forms. The problem is I'm stuck and don't know where to go. As for now the FormBorderStyle is set to none. The hint I got is that I have to use Pen.DashStyle. Here is a screenshot of what I need.

screenshot

Upvotes: 3

Views: 2149

Answers (1)

Mark Hall
Mark Hall

Reputation: 54562

You will want to be looking at the Paint Event of your Form and the Graphics.DrawRectangle Method of the PaintEventArgs.

Upvotes: 1

Related Questions