I am making a usercontrol and for some reason when I change the value it flickers if I move it fast. I've tried to optimize it, but for some reason it still flickers.
Also for some reason sometimes it crashes.
If a post has been helpful please rate it.
If your question has been answered, pull down the tread tools and mark it as resolved.
Hmm that does appear to take a fair bit of the flickering away and it doesn't seem to crash like it did last time.
You may be crashing because you are creating brushes but not destroying them (I haven't really looked at your code) , you might want to look up that stuff on MSDN or at examples using those calls. There is some examples in this tutorial by Mike D. Sutton, Using Device Contexts (DCs) in Visual Basic
i.e. GetSysColorBrush() is not as flexible but doesn't need to be destroyed since the the brush is owned by Windows.
Last edited by Edgemeal; Jul 3rd, 2008 at 02:00 PM.