R
raylopez99
This language C# is more primitive than I thought. I just found out
that C#2.0 does not support polyline (see below), a very useful
feature for connecting points with a line automatically. Only C# 3.0
supports this. I'm curious, what did people do before version 3.0 was
released? I guess they had to construct their own functions that
manually connected the points? Unreal.
I think C# .Forms is beta compared to MFC and C++, but unfortunately
there's no going back...
RL
/*
// Add the Polyline Element //needs VS 2008 / C# 3.0 framework!
myPolyline = new Polyline();
myPolyline.Stroke = Brushes.SlateGray;
myPolyline.StrokeThickness = 2;
myPolyline.FillRule = FillRule.EvenOdd;
Point Point4 = new Point(1, 50);
Point Point5 = new Point(10, 80);
Point Point6 = new Point(20, 40);
PointCollection myPointCollection2 = new PointCollection();
myPointCollection2.Add(Point4);
myPointCollection2.Add(Point5);
myPointCollection2.Add(Point6);
*/
that C#2.0 does not support polyline (see below), a very useful
feature for connecting points with a line automatically. Only C# 3.0
supports this. I'm curious, what did people do before version 3.0 was
released? I guess they had to construct their own functions that
manually connected the points? Unreal.
I think C# .Forms is beta compared to MFC and C++, but unfortunately
there's no going back...
RL
/*
// Add the Polyline Element //needs VS 2008 / C# 3.0 framework!
myPolyline = new Polyline();
myPolyline.Stroke = Brushes.SlateGray;
myPolyline.StrokeThickness = 2;
myPolyline.FillRule = FillRule.EvenOdd;
Point Point4 = new Point(1, 50);
Point Point5 = new Point(10, 80);
Point Point6 = new Point(20, 40);
PointCollection myPointCollection2 = new PointCollection();
myPointCollection2.Add(Point4);
myPointCollection2.Add(Point5);
myPointCollection2.Add(Point6);
*/