PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
ContextMenu default item [resolved]-VBForums
Results 1 to 3 of 3

Thread: ContextMenu default item [resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Austin, TX - United States of America

    ContextMenu default item [resolved]

    I have a system try icon with a ContextMenu like this:
    VB Code:
    1. mContextMenu.MenuItems.Add(New MenuItem("Stop", New EventHandler(AddressOf StopService)))
    2. mContextMenu.MenuItems.Add(New MenuItem("Pause", New EventHandler(AddressOf PauseService)))
    3. mContextMenu.MenuItems.Add(New MenuItem("Continue", New EventHandler(AddressOf ContinueService)))
    4. mContextMenu.MenuItems.Add(New MenuItem("Start", New EventHandler(AddressOf StartService)))
    5. mContextMenu.MenuItems.Add("-")
    6. mContextMenu.MenuItems.Add(New MenuItem("About", New EventHandler(AddressOf AboutBox)))
    7. mContextMenu.MenuItems.Add(New MenuItem("Exit", New EventHandler(AddressOf ExitController)))
    8. mNotifyIcon.ContextMenu = mContextMenu
    Is there a way to have a default item in the context menu and show it bold? Basically, when the user right clicks on the icon, the menu comes up. I want the first item bold which when clicked does the same thing as double clicking the icon. You know, the standard way most system tray icons perform.
    Last edited by blindlizard; May 19th, 2005 at 02:57 AM. Reason: Resolved
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]

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