|
-
December 16th, 1999, 04:50 PM
#1
Click on a menu from code
Hi, can I click on a menu item from code? that is at run time I want to run a menu by code, not by clicking the menu by mouse.
Thank you for response
Alex
-
December 16th, 1999, 09:15 PM
#2
Re: Click on a menu from code
Supposing the name of the menu item is mnuFileNew try this... First, put the code you want to run when the user click's the menu item behind it's Click event. Then to run that code...just call it like any other function. Example:
mnuFileNew_Click
-
December 17th, 1999, 10:04 AM
#3
Re: Click on a menu from code
Thanks for the response, but do we have another way to call menu item like send a message or a run a menu command because I want call the menu item from anywhere in the application and I don't want set the click procedure as a public.
Thanks
Alex
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|