Shortcut Keys for Button in vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthickbabu
    New Member
    • Sep 2007
    • 33

    Shortcut Keys for Button in vb.net

    Hi

    How can i create shortcut keys for Button Controls in vb.net. I am using MDI form and Child Form. I want to create shortcut key for button in ChildForm. Actually i created but when i press Alt it focus to MDI form Only. Whether its right or wrong


    Hoper your reply
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    put youe code sample to help you better

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Does putting the '&' symbol in the Text of the button not work?
      I think in .NET2.0 they have a hotkey property as well?

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        No need to write any code , you only need to set the property .

        Comment

        • karthickbabu
          New Member
          • Sep 2007
          • 33

          #5
          Ya, i tried using ampersand symbol before the character in Text Property of the Button Control. Actually i need this in Child Form Button. When i click Alt Key it focus to the Parent form, any need to change the Focus between these two forms.

          Any suggesstion about this...!

          Hope your reply

          Comment

          Working...