Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code To Draw A Line - Doesn't
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01393526
Message ID:
01393678
Views:
37
>>I'm trying the code snippet here http://msdn.microsoft.com/en-us/library/aa287522(VS.71).aspx
>>It's supposed to draw a line on the form, but I get nothing.

Couldn't find anything in the link.
But to draw a line:
using System.Drawing;
using System.Drawing.Drawing2D;

...
            Graphics g = this.CreateGraphics();
            Pen p = new Pen(Color.Black);
            g.DrawLine(p, 0, 0, 100, 100);
            p.Dispose();
...
HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform