Results 1 to 20 of 20

Thread: [RESOLVED] Notify Icon with right click menu.

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Posts
    13

    [RESOLVED] Notify Icon with right click menu.

    I need to make a program that does not have any forms in it whatsoever, but does put a notify icon with a right click menu in the system tray. I've tried doing something like this:

    VB Code:
    1. Dim trayicon As New System.Windows.Forms.NotifyIcon
    2.             Dim icon As New Icon("C:\myicon.ico")
    3.             trayicon.Icon = icon
    4.             trayicon.Visible = True

    But that doesn't work.

    Even if I could create a notify icon I don't know how to add menu items to it that do anything.

    If someone could post a sample of some code on how to do either of these things or point me to some place with an example, I'd appreciate it very much.
    Last edited by Safrax; Dec 31st, 2003 at 01:16 PM.

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