Hi~ I am very fresh in VB, this forum really help me a lot.
Actaully what I want to do is assign a shortcut key to a button (Alt+a) at form A. But, the problem is, system take priority of run MdiForm's menu first once i press "Alt" key on the keyboard.
So, I think for another way to overcome this problem that is call the Command1_Click function by MdiForm's menu.
The code I write is for the mdiForm menu is:
Sure, it doesn't run bcoz the data member .Command1_Click is not found.vb Code:
Private Sub menuAdd_Click() Call formA.Command1_Click End Sub
Anyone have an idea?




Reply With Quote