I make GUI in winforms with C#.I have a code with graphicspath, it works perfectly in isual studio 2010 but it doesn't work in visual studio 2008. Error said that graphicspath is not in drawing2D.So is it possible to make button without graphics path?
and here is my code:
What I have tried:
private void Form1_Load(object sender, EventArgs e)
{
System.Drawing.Drawing2D.GraphicsPath TrianglePath = new System.Drawing.Drawing2D.GraphicsPath();
Point[] pTPoints = { new Point(30,0), new Point(60, 60), new Point(0, 60) };
TrianglePath.AddLines(pTPoints);
button1.Size = new System.Drawing.Size(120, 120);
button1.Region = new Region(TrianglePath);
TrianglePath.Dispose();
}