Results 1 to 4 of 4

Thread: Send to system tray

  1. #1

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219

    Send to system tray

    I know this question has been asked many times but i just cant find the code i want. What i have works but it also minimizes it and i dont want that to happen. I just want it to go to the system tray them whem you click it, it gets restored. heres what i got:
    VB Code:
    1. Private Sub NotifyIcon1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDown
    2.         Me.WindowState = FormWindowState.Normal
    3.         Me.NotifyIcon1.Visible = False
    4.         Me.ShowInTaskbar = False
    5.     End Sub
    6.  
    7.     Private Sub MenuItem18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem18.Click
    8.         Me.NotifyIcon1.Visible = True
    9.         Me.WindowState = FormWindowState.Minimized
    10.         Me.ShowInTaskbar = False
    11.     End Sub
    -Rob

  2. #2
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    784
    Try it .. then let me know the result
    Attached Files Attached Files

  3. #3

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    Yes it worked great!! Thank you!!
    -Rob

  4. #4
    Member
    Join Date
    Mar 2002
    Posts
    48

    Exclamation

    This Post is the best! Thanks!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width