CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    SungNam KyungKi Korea
    Posts
    14

    Controls are blinking when mouse-clicked. Why?

    There are many controls in my Form on which covered all with a picture box.
    When I click the mouse button on a control box,
    all controls are redrawing...-> blinking !...-_-
    Why does this phenomenon occur...?

    Thanks for any answering.. any...




  2. #2
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: Controls are blinking when mouse-clicked. Why?

    When a window is repainted the controls on it are redrawn from the back to the front of the ZOrder.
    You are better to set your control's visible property until they are needed - this will prevent them being painted.

    HTH,
    Duncan

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

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

Featured