R
RichGK
This is from
http://msdn2.microsoft.com/en-us/library/aa287522(VS.71).aspx
public MainForm()
{
InitializeComponent();
System.Drawing.Pen myPen;
myPen = new System.Drawing.Pen(System.Drawing.Color.Red);
System.Drawing.Graphics formGraphics = this.CreateGraphics();
formGraphics.DrawLine(myPen, 0, 0, 500, 500);
myPen.Dispose();
formGraphics.Dispose();
}
Sorry about the formatting, google is terrible at allowing tabs.
http://msdn2.microsoft.com/en-us/library/aa287522(VS.71).aspx
public MainForm()
{
InitializeComponent();
System.Drawing.Pen myPen;
myPen = new System.Drawing.Pen(System.Drawing.Color.Red);
System.Drawing.Graphics formGraphics = this.CreateGraphics();
formGraphics.DrawLine(myPen, 0, 0, 500, 500);
myPen.Dispose();
formGraphics.Dispose();
}
Sorry about the formatting, google is terrible at allowing tabs.