Results 1 to 4 of 4

Thread: Flickering with FillRect

Hybrid View

  1. #1
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Flickering with FillRect

    Quote Originally Posted by Mxjerrett
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width