Results 1 to 11 of 11

Thread: [RESOLVED] Shortcut key to a form's button while a MdiForm is existed

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2007
    Location
    M'sia
    Posts
    53

    Resolved [RESOLVED] Shortcut key to a form's button while a MdiForm is existed

    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:
    vb Code:
    1. Private Sub menuAdd_Click()
    2.     Call formA.Command1_Click
    3. End Sub
    Sure, it doesn't run bcoz the data member .Command1_Click is not found.

    Anyone have an idea?
    Last edited by Ropyon; Apr 20th, 2007 at 05:47 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width