Last post Apr 28, 2008 07:11 AM by Enas
Apr 28, 2008 03:59 AM|Enas|LINK
i'm having an annoying problem here in vb.net visual studio 2005 [:(], whenever i draw an image , a line ... etc in a panel ... these shapes disappear when the panel is minimized or being hidden by anything else ...and i have to draw them again
my project totally depends on drawing graphics ... so plz i need a solution ....
p.Drawline(Pens.Blue, 50, 50, 10,10)
gdi+ memory bitmap sclaing drawimage resizing
Apr 28, 2008 05:02 AM|DiscernIT|LINK
this looks like winforms code? (not asp.net?)
That's how the drawing works.. the controls are being re-drawn. Do drawing like this to a graphics control within an 'onpaint' event of the control (panel, form etc..) Then the line or whatever is drawn on each repaint.
Apr 28, 2008 07:11 AM|Enas|LINK
well..... thanx ...but i didn't get it ....where do i have to use the onpaint event...coz i didn't use to deal with events [:$]
i want to use a menu or a button called draw for example and whenever i click it , i want the graphics to appear
n.DrawLine(Pens.Blue, 50, 50, 10, 10)
shall i use this event ???