gchq
Well-known member
- Joined
- Dec 14, 2007
- Messages
- 168
- Programming Experience
- 10+
Hi there
I have a dynamically built form with a ToolStrip and a RTB. The RTB has MouseUp and and KeyUp events attached (that change the ToolStripButtons image and ToolTipText depending upon the cursor position) . Every time an event occurs the ToolStripCombobox flickers (very badly)
I have changed the form to a custom control like this:-
But that has no effect at all.
Any ideas?
Thanks
I have a dynamically built form with a ToolStrip and a RTB. The RTB has MouseUp and and KeyUp events attached (that change the ToolStripButtons image and ToolTipText depending upon the cursor position) . Every time an event occurs the ToolStripCombobox flickers (very badly)
I have changed the form to a custom control like this:-
VB.NET:
Public Class No_Flicker_Form
Inherits Form
Protected Overrides Sub OnLayout(ByVal levent As System.Windows.Forms.LayoutEventArgs)
MyBase.OnLayout(levent)
MyBase.SetStyle(ControlStyles.UserPaint, True)
MyBase.SetStyle(ControlStyles.AllPaintingInWmPaint, True)
MyBase.SetStyle(ControlStyles.OptimizedDoubleBuffer, True)
MyBase.UpdateStyles()
End Sub
End Class
But that has no effect at all.
Any ideas?
Thanks