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?
Printable View
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?
Try this after the code that handles unchecking menuitem .
VB Code:
SendKeys.Send("%F")
Caution :
Save your work and then try that work in case something bad happen (I had my system halted but in different scenario)
nope. that didn't work. I will keep looking into the sendkeys function though thanks!
I just tried this and it works . I added Enter key value (~) .
VB Code:
SendKeys.Send("%F~")
i took a screen shot of the error I get. Please take a look....
Hell , what is that !!:confused: . Where did you use that code ?
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?
Just to double check . :DQuote:
Originally posted by thephantom
LOL. i put that in the click even of my menu item.
Why not ?Quote:
now, I don't have any shortcuts or hotkeys pointing to this menu item. Is that a problem?
I can't think of any other solutions . This works good , at least to me.;)Quote:
Is there another way besides sendkeys?
alrighty then. I will assign hotkeys to it and see what happens.