Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've been looking through the object explorer without much success to find a method of turning off screen refresh util I've made the required form changes at runtime and then turn it back on so the user sees a smooth change of screen content.

 

any ideas?

My website
Posted

When a user selects to resize the form from a menu as soon as the new width and height values are changed the user sees a momentary glimpse of the controls on the form prior to being rescaled to the new size.

 

I know in VBA you can turn off screen refresh until you have finished making modifications. Hoping there is something similar in VB.Net

My website
  • *Gurus*
Posted
Have you tried SuspendLayout and ResumeLayout? If you're modifying the size from the UI thread (which you must be) there shouldn't be a chance for the application to paint itself before the new size takes effect.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted

Divil, this does not work as I still see the momentary blip.

 

My form if 300*300 with an image on it, I change it to 600*600 and there is a split second where you see the form resizing but with the image still at 300*300, then the image changes to 600*600

My website

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...