HI
I'm very new to C# and I've got a big project to do in C# for uni until july.
I've been trying do draw lines in C# (arrows to be precise). I can draw them allright but once I minimize the program and maximize it again, the arrows dissapear :S.
this also happens if I open another program on top of the program I'm creating.
Is their a way to correct this?
To draw the lines I've been using this piece of code.
thanks in advance.
I'm very new to C# and I've got a big project to do in C# for uni until july.
I've been trying do draw lines in C# (arrows to be precise). I can draw them allright but once I minimize the program and maximize it again, the arrows dissapear :S.
this also happens if I open another program on top of the program I'm creating.
Is their a way to correct this?
To draw the lines I've been using this piece of code.
Code:
Graphics graph = panel1.CreateGraphics(); Pen pencurrent = new Pen(Color.Black); graph.DrawLine(pencurrent, 220, ultimoponto, 220, ultimoponto+20); graph.DrawLine(pencurrent, 215, ultimoponto + 15, 220, ultimoponto+20); graph.DrawLine(pencurrent, 225, ultimoponto + 15, 220, ultimoponto+20);
Comment