rosshodges Posted December 13, 2002 Posted December 13, 2002 I have this code Private Sub NotifyIcon1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.DoubleClick If Not Me.Visible Then Me.CenterToScreen() Me.Show() Me.Activate() Me.NotifyIcon1.Visible = False Me.ShowInTaskbar = True End If End Sub Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing Me.ShowInTaskbar = False Me.NotifyIcon1.Visible = True Me.Hide() e.Cancel = True End Sub I Would like it when i click on a button for it to min to the sys tray. How can i do this i cant figure it out. Thanks, Ross Quote "Drink wet cement and get really stoned"
*Gurus* divil Posted December 13, 2002 *Gurus* Posted December 13, 2002 If you want to hide the form and show the system tray icon, you'd use what you already have: Me.NotifyIcon1.Visible = True Me.Hide() Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
rosshodges Posted December 14, 2002 Author Posted December 14, 2002 It loads up in the sys tray on opening not when i minimize it. Any ideas? Ross Quote "Drink wet cement and get really stoned"
*Gurus* Derek Stone Posted December 14, 2002 *Gurus* Posted December 14, 2002 Try setting NotifyIcon1.Visible = False in the properties window. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.