Posted: Thu May 07, 2009 9:56 am Post subject: i am so confused
ok so i watched 2 vids and read like 5 tuts on how to make a program minimize to system tray when you press a button but it is in the system tray and the window is still at the bottom of teh screen and the icon stays in the system tray please help _________________
NINTENDO Grandmaster Cheater Supreme Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
Posted: Thu May 07, 2009 3:10 pm Post subject:
drag out notifyicon control and set a text and a icon. then
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If (NotifyIcon1.Visible) Then
NotifyIcon1.Visible = False
Me.Show()
Else
NotifyIcon1.Visible = True
Me.Hide()
End If
End Sub
Private Sub NotifyIcon1_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDoubleClick
Me.Show()
End Sub
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum