Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PictureBox Redraw

Status
Not open for further replies.

sony2000

Programmer
Dec 7, 2003
34
0
0
HK
Hi,

I implement some drawings on a PictureBox control
on a form. However, when the form minimize and
show again, the drawings on the pictuerbox control
disappears. Is there any redraw event I need to
implement so that the drawings on the picturebox
control are keeping persisent.

Thanks for your kind attention,
Raymond
 
It is not possible. You need to redraw your drawing on the PictureBox's paint event. But a better soluion is to create a bitmap in memory, and draw onto the bitmap. Set the PictureBox's .Image property to the bitmap.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top