PDA

Click to See Complete Forum and Search --> : Picture Box Doesn't Redraw


limmies1
Aug 20th, 2000, 10:56 PM
What I've done is to send a picture box as an object into a module for manipulation. However, while the module is being run, whenever i set the visible property to be true, all i get is a box (without the picture) and when i set it to be false, the original picture box is still there.

The final (correct) product happens only when the algorithm runs to the end.

How can I make it such that the picture box is right when the module is runned?

andrew

kedaman
Aug 21st, 2000, 02:55 AM
Picturebox.Refresh

limmies1
Aug 21st, 2000, 03:23 AM
The picturebox that is supposed to be visible is ok now. However the picturebox that has its properties changed to Invisible is still visible. Help!!!

andrew

kedaman
Aug 21st, 2000, 03:50 AM
Hmm, thats odd, there are two causes i could think of,

1. That you have clipcontrols set to false
2. That you don't give a chance for the form to update it's event. Use doevents statement after you turn it invisible and it will repaint the form

Mad Compie
Aug 24th, 2000, 01:22 PM
Me.Refresh ?