Remove Minimized Form Completey When ShowInTaskbar = false

Posted on 2007-07-28
Last Modified: 2013-11-07
Experts, I am creating a windows form and wish to ShowInTaskbar = false. However, when I minimize the form I still have the 'minimized' form in the lower left of my screen above my taskbar. Is there a way to get ride of it completely when it is minimized? I am controling the "re-apparing" of the form through a notifyIcon/contextMenu.

~ C
Question by:clickclickbang
    LVL 3

    Assisted Solution

    In addition to setting the ShowInTaskbar property to false, try setting the Forms FormBorderStyle to SizableToolWindow (allowing it to be resizable) or to FixedToolWindow (making it not resizable).
    LVL 4

    Accepted Solution

    I had the same problem a few months ago, and I remember that I managed the SizeChanged event , and check if the state is minimized, then jus call the Hide() method and that's it.

    Hope helps
    LVL 1

    Author Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    761 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

    11 Experts available now in Live!

    Get 1:1 Help Now