Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NotifyIcon Question

Status
Not open for further replies.

TazzMann

Programmer
Jul 25, 2001
79
US
Hi all!
I added a NotifyIcon to my Windows application and it works fine with one exception: I need to remove the taskbar idication of the application when the application is minimized.
I know I can set the ShowinTaskbar property to true, but what event is fired when the taskbar is minimized, or is there no event? If not, is there a different way of checking this? I know it can be done, I have seen it in other applications.

Thanks in advance,


Tazzmann
 
Nevermind, I figured it out. For anyone who is interested, the code is below.

Code:
Private Sub frmMain_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
        If Me.WindowState = FormWindowState.Minimized Then
            Me.ShowInTaskbar = False
        End If
    End Sub

Tazzmann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top