Minimise to taskbar (WM6)

Posted on 2009-02-24
Last Modified: 2013-12-21
I need my application to minimise to the taskbar, showing an icon - just like the native volume control does.
Could someone please provide me some c# code to do this please.

Question by:sdom100
    LVL 53

    Expert Comment

    If you're using Visual Studio .NET, add a NotifyIcon to your form. Set the default Visible property to be false.

    Add a Form_Resize event handler to the form.

    private void Form1_Resize(object sender, System.EventArgs e)
          if(this.WindowState == FormWindowState.Minimized)
                this.Visible = false;
                notifyIcon1.Visible = true;

    Then add an event handler to the NotifyIcon (usually double click) with this code:

    this.Visible = true;
    notifyIcon1.Visible = false;
    LVL 53

    Expert Comment

    Placing Your C# Application in the System Tray

    C# Tip: Placing Your C# Application in the System Tray

    Author Comment

    Thanks but unfortunately on Windows Mobile 6, there is no notify icon.
    The closest it gets is a notification bubble but that's not quite the same.
    LVL 53

    Accepted Solution

    Using the Microsoft .NET Compact Framework MessageWindow Class

    Learn how to use the .NET Compact Framework MessageWindow class to create a NotifyIcon. (9 printed pages)

    Author Closing Comment

    The article in Dhaest's answer does not put an icon on the taskbar but this is apparently banned in CE (officially anyway). The article is about as close as useful info gets to the answer - although it didnt work when I tried it :(

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.   If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…
    Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator ( This article presumes a wor…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    728 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

    16 Experts available now in Live!

    Get 1:1 Help Now