Results 1 to 10 of 10

Thread: checked state on menuItems [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    checked state on menuItems [RESOLVED]

    I need to have my submenu stay open like it is when the user checks or unchecks a submenu item. Right now, when they do click to toggle the checked state, it simply closes all of the menus. How can I code it to stay open?
    Last edited by Andy; Feb 11th, 2004 at 09:47 PM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Try this after the code that handles unchecking menuitem .
    VB Code:
    1. SendKeys.Send("%F")

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Caution :
    Save your work and then try that work in case something bad happen (I had my system halted but in different scenario)

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    nope. that didn't work. I will keep looking into the sendkeys function though thanks!

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I just tried this and it works . I added Enter key value (~) .
    VB Code:
    1. SendKeys.Send("%F~")

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    i took a screen shot of the error I get. Please take a look....
    Attached Images Attached Images  

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Hell , what is that !! . Where did you use that code ?

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    LOL. i put that in the click even of my menu item.

    now, I don't have any shortcuts or hotkeys pointing to this menu item. Is that a problem? Is there another way besides sendkeys?

  9. #9
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by thephantom
    LOL. i put that in the click even of my menu item.
    Just to double check .

    now, I don't have any shortcuts or hotkeys pointing to this menu item. Is that a problem?
    Why not ?

    Is there another way besides sendkeys?
    I can't think of any other solutions . This works good , at least to me.

  10. #10

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    alrighty then. I will assign hotkeys to it and see what happens.

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