Speeding up image rendering on Windows Forms

dotnetman

Newcomer
Joined
Jan 4, 2005
Messages
19
Friends,
I have created a player and have used pictures to create the console and other controls. It also has a zoom function which basically changes the size of the form, thus changing the size of the other controls too (anchored). However, whenever it does this, it takes some time and gives this flickering effect till all the images are rendered. I have used pictureboxes for the control images. Is there a way of speeding this up? I have used double buffer but to no avail.

HELP!!!
DNM
 
In resize, or whenever redrawing the form...

Form.SuspendLayout()

''draw images

Form.ResumeLayout(false)
 
Back
Top