I can't seem to draw a line on a panel on my form. I have read he MSDN site, and got some code that they claim to work, but it won't work for me. And the other sites that I have seen, seem to do it the say way. Why can't I get this to work?
Thanks in advance.
using ( Graphics tempGphc = MPnl.CreateGraphics() ) {
tempGphc.DrawLine( new Pen( Color.Black ), tempPt.X + 90, StartY - 47, tempPt.X + 90, tempPt.Y + 47 );
}
Couldn't even get it to draw it on my form.
using ( Graphics tempGphc = this.CreateGraphics() ) {
tempGphc.DrawLine( new Pen( Color.Black ), 5, 455, 300, 455 );
}