在选取某个功能表命令,按下按钮或是任何其他事件发生时,可能会出现这种情形。
This can happen when a menu command is selected, when a button is clicked, or when any other event occurs.
例如,在所公开功能都相同的情况下,如果能让功能表命令和表单上按钮一样引发相同事件的话,便可节省相当可观的时间。
For example, it is often a powerful time-saver to have a menu command raise the same event as a button on your form does if they expose the same functionality.
下列程序说明可从子表单功能表、MDI表单中的功能表或工具列按钮呼叫的复制程序。
The procedure below illustrates a copy procedure that can be called from a child form menu, a menu on the MDI form, or a toolbar button.
应用推荐