Hello,
I have a form with a MainMenu on it, I would like to expand automatically this menu when form loads, how can I do this, or how can I programatically expand menus?
Thanks in advance!
------------------ SOLVED
I solved this by using SendKeys.Send on Form Paint Event...
PrivateSub FormaMenu_Paint(ByVal sender AsObject, ByVal e As System.Windows.Forms.PaintEventArgs) HandlesMyBase.Paint
SendKeys.Send("%F")
EndSub
%F Means to send "ALT+F" keys at a time, "% = ALT", "F" is the shortcut for the menu item i want to expand.
I hope this helps to others.
Regards.
I have a form with a MainMenu on it, I would like to expand automatically this menu when form loads, how can I do this, or how can I programatically expand menus?
Thanks in advance!
------------------ SOLVED
I solved this by using SendKeys.Send on Form Paint Event...
PrivateSub FormaMenu_Paint(ByVal sender AsObject, ByVal e As System.Windows.Forms.PaintEventArgs) HandlesMyBase.Paint
SendKeys.Send("%F")
EndSub
%F Means to send "ALT+F" keys at a time, "% = ALT", "F" is the shortcut for the menu item i want to expand.
I hope this helps to others.
Regards.
Last edited: