Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
System tray icon and hiding the form
Message
From
20/01/2005 02:41:53
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
System tray icon and hiding the form
Miscellaneous
Thread ID:
00978779
Message ID:
00978779
Views:
60
I have added a notify icon to my application. It works well. When the application starts, I see my icon in the system tray. Now, from the form, I can minimize. When I do it, I have added this code in the form resize event to not show the task in the task bar:
    Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
        If (FormWindowState.Minimized = WindowState) Then
            ShowInTaskbar = False
        End If
    End Sub
But, doing this is closing my form for good as if I would have close it manually. I don't know what triggers the close event to be fired. Anyone would have any idea?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform