C
Coralin Feierbach
I created a Windows Form Project using VS.net.
I'm trying to draw a line between two points.
(Plotting a graph, dynamically)
This is the code I have so far:
What do I have to do to actually see the line painted on
my form?
private: System::Void button1_Click(System::Object *
sender, System::EventArgs * e)
{
Graphics* g;
Pen* myPen = new Pen(Color::Red);
myPen->Width = 5;
g->DrawLine(myPen, 1, 1, 45, 65);
}
I'm trying to draw a line between two points.
(Plotting a graph, dynamically)
This is the code I have so far:
What do I have to do to actually see the line painted on
my form?
private: System::Void button1_Click(System::Object *
sender, System::EventArgs * e)
{
Graphics* g;
Pen* myPen = new Pen(Color::Red);
myPen->Width = 5;
g->DrawLine(myPen, 1, 1, 45, 65);
}