Blinking display when hiding form

Posted on 2011-05-09
Last Modified: 2012-05-11
I open  FormB from FormA using FormB.ShowDialog(FormA).
When I hide FormB the display blink and showing the desktop for several miliseconds.
When I use Show() instead of ShowDialog() it works OK.
I got an error trying to set FormB.Parent=FormA, and Setting FormB.Owner=FormA did not help.
How can I solve this?
Question by:yaron89
    LVL 74

    Accepted Solution

    Perhaps enable DoubleBuffering?
    LVL 85

    Expert Comment

    by:Mike Tomlinson
    Can you show us the actual code where you create the form and display it?

    Also, why are you hiding FormB?
    LVL 11

    Assisted Solution

    Hi, You should use the Me.Close() before showing the another form.
    LVL 85

    Expert Comment

    by:Mike Tomlinson what was the issue?

    Featured Post

    Hire Top Freelancers to Complete C# Projects

    Source the talented Expert Exchange community
    for top quality work on your C# projects.

    Hire the best. Collaborate easily. Get quality work.

    Join & Write a Comment

    Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now