Hello,
I have on a form a menu with 6 sub items.
When i load the form i want the menu rolled out automaticly.
How can i do that?
I want to see by opening the form:
Main Menu
sub item 1
sub item 2
etc.
Thanks
Herman
Printable View
Hello,
I have on a form a menu with 6 sub items.
When i load the form i want the menu rolled out automaticly.
How can i do that?
I want to see by opening the form:
Main Menu
sub item 1
sub item 2
etc.
Thanks
Herman
Depending on your menu a sendkeys should do the trick.
For example lets say I have a menu with a caption of &Utilities
I can use the following at the end of my form load event to cause this menu to drop down initially.
In this case U is the underlined character the % is the ALT key so the effect is the same as if the user pressed ALT+UCode:SendKeys "%" + "U"
Thanks DataMiser, but is does not work here.
You did not give much to go on. If you used that line of code unchanged I would not expect it to work. Nor would it work if you have not used the & as part of your menu caption.
Do you have a character underlined on the menu caption? Did you use that character in the place where I used a U in the example?
Sorry DataMiser,
I quess i did not wake up properly this morning.
I left the U instead of the correct letter.
Now it works fine.
Thanks a lot.
Have a nice weekend.
Herman