Ciao a tutti,
ho trovato questo programma che mi fa mettere un form in tray:
Private Sub Form_Load()
' hide this form so that only the tray icon is visible
Me.Hide
' get te picture that will be used for the tray icon.
SavePicture Me.Icon, "temp.icx"
' Set the tray properties.
Tray1.SetPicture = "temp.icx"
Tray1.SetTip = "Tray Control Example"
' Then load it into the system Tray!
Tray1.Add
End Sub
Private Sub Form_Unload(Cancel As Integer)
' clean things up before we exit.
' delete the icon out of the tray.
Tray1.Delete
' delete the temp icon file
Kill "temp.icx"
End
End Sub
Private Sub Tray1_MouseClick(Button As Integer)
' we want to look for a right single click .. button = 4
If Button = 4 Then PopupMenu traymenu
End Sub
Private Sub traymenu_exit_Click()
Unload Me
End Sub
però c'è un prob, quando metto in tray il form scompare, allora ho levato me.hide, e il form me lo fa vedere mentre è in tray, però io voglio che il form me lo fa vedere mentre sta nella tra ma che non sia aperto nella barra delle applicazioni.
Come faccio?