|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
stop the painting of a formHello,
I have a problem with a form loading a repainting. Because the form uses an office 2000 styles, when it paints it causes a lot of flickering. The standard advice is to set the following SetStyle(ControlStyles.DoubleBuffer, True) SetStyle(ControlStyles.AllPaintingInWmPaint, True) However this seems to make no difference. When the form loads it originall appears in the old grey colour of classic windows and then quickly changes to the new blue of Office 2000 styles. This causes a lot of flickering, any ideas to reduce or possible remove this so that the form appears fully formed. The form is an inherited form so this may be another issue. Regards Robert > I have a problem with a form loading a repainting. Because the form If the problem is confined to the form load event, then do Me.Hide at the > uses an office 2000 styles, when it paints it causes a lot of flickering. The > standard advice is to set the following > SetStyle(ControlStyles.DoubleBuffer, True) > SetStyle(ControlStyles.AllPaintingInWmPaint, True) > > However this seems to make no difference. When the form loads it originall > appears in the old grey colour of classic windows and then quickly changes to > the new blue of > Office 2000 styles. This causes a lot of flickering, any ideas to reduce or > possible remove this so that the form appears fully formed. The form is an > inherited form so this may be another issue. top and Me.Show at the bottom of the load event handler. This works for me in all cases where the first draw of a form is clunky. Hello AMercer,
YIKES. Try using LockWindowUpdate() at the beginning and end of the paint cycle. -Boo Show quoteHide quote >> I have a problem with a form loading a repainting. Because the form >> uses an office 2000 styles, when it paints it causes a lot of >> flickering. The >> standard advice is to set the following >> SetStyle(ControlStyles.DoubleBuffer, True) >> SetStyle(ControlStyles.AllPaintingInWmPaint, True) >> However this seems to make no difference. When the form loads it >> originall appears in the old grey colour of classic windows and then >> quickly changes to the new blue of Office 2000 styles. This causes a >> lot of flickering, any ideas to reduce or possible remove this so >> that the form appears fully formed. The form is an inherited form so >> this may be another issue. >> > If the problem is confined to the form load event, then do Me.Hide at > the top and Me.Show at the bottom of the load event handler. This > works for me in all cases where the first draw of a form is clunky. >
Msgbox to asp client?
Can I map the data received from a socket directly to a structure in VB.NET Return vs Exit Sub Type.TypeOf doesn't work ? Detecting when VB.net 2005 splash screen closing or closed Can't delete VB.NET directories & files... VB.net 2005 splash screen and main form problems DATAGRID DROPDOWN PROBLEM Disappearing Listbox items... How do I validate the values entered for custom control properties? |
|||||||||||||||||||||||