Answers for "how to draw a dot in c#"

C#
0

how to draw a dot in c#

private void Form1_Paint(object sender, PaintEventArgs e)
    {
        using (Pen p = new Pen(Brushes.Black))
        {
            p.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot;
            e.Graphics.DrawLine(p, 10, 10, 11, 10);
        }
    }
Posted by: Guest on May-04-2020

C# Answers by Framework

Browse Popular Code Answers by Language