hog Posted May 9, 2003 Posted May 9, 2003 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? Quote My website
*Gurus* divil Posted May 9, 2003 *Gurus* Posted May 9, 2003 Some controls have a BeginUpdate and EndUpdate pair to do this, all controls have a SuspectLayout and ResumeLayout pair just for layout out children. What exactly did you need it for in this instance? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
hog Posted May 10, 2003 Author Posted May 10, 2003 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 Quote My website
*Gurus* divil Posted May 10, 2003 *Gurus* Posted May 10, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
hog Posted May 12, 2003 Author Posted May 12, 2003 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 Quote My website
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.