Results 1 to 6 of 6

Thread: Forms flicker when loading

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    15

    Forms flicker when loading

    Hi all,

    I'm using VB.Net (2005), and have created a simple windows application, with MDI child forms.

    When I load the child forms, the forms appear to flicker (while loading each control).
    I'm running on a 1.8GHz Pentium M, on 1GB of RAM, so I dont think it's a resource issue.

    Please advise...

    Thanx in advance..
    ;p

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Forms flicker when loading

    Try adding Application.DoEvents() right before you show the child form. This should help.

  3. #3
    Junior Member
    Join Date
    Dec 2004
    Posts
    17

    Re: Forms flicker when loading

    You could also try adding in a SuspendLayout before you load the form, then add in a ResumeLayout after the form is loaded.

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    15

    Re: Forms flicker when loading

    Thanx guys,

    I've tried to insert the DoEvents, but that didnt help.

    Also have been trying to use the Suspend/ResumeLayout, which technically would've been the obvious solution, but apparently, had no effect.

    I've also narrowed down the issue to the fact that it flickers horribly only when I set the MDI child window state to "maximized". It still flickers when loading the form as "normal", but a lot less.

  5. #5
    Frenzied Member HanneSThEGreaT's Avatar
    Join Date
    Nov 2003
    Location
    Vereeniging, South Africa
    Posts
    1,492

    Re: Forms flicker when loading

    What flickers superfrog ¿
    The controls on the particular form, or the form itself ¿

    How do you load the child forms ¿
    VB.NET MVP 2008 - Present

  6. #6
    Fanatic Member dom_stapleton's Avatar
    Join Date
    Sep 2005
    Location
    Leigh-on-Sea, UK
    Posts
    665

    Re: Forms flicker when loading

    Applications created with Microsoft Visual Basic .NET always seem to flicker when they are being drawn. I have noticed this constantly with my applications. The only suggestion I could find is to use a different programming environment such as C++/MFC.
    I use Microsoft Visual Basic 2008 Express Edition.

    If my post has been helpful, please rate it, unless you don't believe in Karma... which actually I don't!

    Resources:
    Visual Basic Tutorials (1, 2) | MSDN Library | Google | Krugle | Search Forums

    Free components:
    Windows Forms Components | XP Common Controls Library

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