Change color in paint
<p>I have coded a program that will allow user to paint with pen in the Form.
But there is a problem. </p>

<p>I can set just 2 color in the form e.g. I set Black color for left buttons and red color for right buttons.</p>

<p>Everything I need is how can I change this code to a code which user can choose his own Color.</p>

<p>I tried different ways like Color Dialogue but I couldn't.</p>

<p>My code:</p>

<pre><code>private void Form1_MouseMove(object sender, MouseEventArgs e)
{
    if (e.Button == System.Windows.Forms.MouseButtons.Left)
    {
        Graphics graphic = this.CreateGraphics();
        graphic.DrawLine(Pens.Black, e.X, e.Y, e.X + 1, e.Y + 1);
    }

    if (e.Button == System.Windows.Forms.MouseButtons.Right)
    {
        Graphics graphic = this.CreateGraphics();
        graphic.DrawLine(Pens.Red, e.X, e.Y, e.X + 1, e.Y + 1);
    }
}
</code></pre>