[RESOLVED] [2005] Paint Event.
I've got code in the _paint event of a picturebox to draw some stuff to it. However, the paint code only seems to fire when it's been drawn over (by another window and such). How can I get to paint event to fire of it's own accord through code? I've tried calling the sub and constructing a painteventargs object based off of the picture box's properties but it takes too long to load. Any help?
Thanks.
Re: [RESOLVED] [2005] Paint Event.
Also, to prevent flickering set these properties in the Form_Load event:
VB Code:
SetStyle(ControlStyles.OptimizedDoubleBuffer, True)
SetStyle(ControlStyles.AllPaintingInWmPaint, True)