send to tray

SpiN9823
01-19-2004, 12:24 PM
how do i make it so a menu item(MenuItem6) makes form1 go to the tray?

SpiN9823
01-19-2004, 12:31 PM
i just found out how but now i cant get it out of the tray :(
how do i make it so when you double click the icon in the tray it comes back up... if you could help me id reallllllyyy appreciate it

Machaira
01-20-2004, 06:27 AM
What's the code you have so far?

SpiN9823
01-20-2004, 06:31 PM
i got it out of the tray

SpiN9823
01-20-2004, 06:38 PM
i did:
Private Sub MenuItem6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem6.Click
Me.Hide()
End Sub

and then i made a contextmenu
and did Private Sub MenuItem74_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem74.Click
Me.Show()
End Sub

SpiN9823
01-20-2004, 06:42 PM
i jst figured out soemthing that makes it a lot easier if you have a notifyicon:

Private Sub NotifyIcon1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NotifyIcon1.DoubleClick
Me.Show()
End Sub
End Class

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum