Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code To Draw A Line - Doesn't
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01393526
Message ID:
01393678
Vues:
38
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform