<p>How can i draw a dotted line in .NET/WinForms/GDI+?</p>

<pre><code>Pen p = new Pen (Color.Black) 
</code></pre>

<p>gives me only solid line pen. </p>

<p>I am trying to have a dotted (or dashed) lines; can't seem to be able to google it up successfully.</p>

<p>Will much appreciate any help on this one.</p>

```
```
p.DashStyle = DashStyle.Dash;
```
```
I believe.