Results 1 to 5 of 5

Thread: How to set a shortcut key for label in Vb?

  1. #1
    Join Date
    Feb 2009
    Posts
    6

    How to set a shortcut key for label in Vb?

    Hello,

    How to set a shortcut key for label in VB.
    pls i want to know that is there any keyboard shortcut for bringing the label ctrl in the form.
    Thanks!

  2. #2
    Join Date
    Jan 2009
    Posts
    44

    Re: How to set a shortcut key for label in Vb?

    by usemenomonic=true

  3. #3
    Join Date
    May 2008
    Posts
    115

    Re: How to set a shortcut key for label in Vb?

    object.KeyLabel(keycode) [= string]
    You would probably create the menu item as follows:
    .Add “keyFile”, , , “E&xit”, , vbAltMask + vbCtrlMask, vbKeyEnd
    The default key label for vbKeyEnd is “End”. Thus, the shortcut string will be created by default as “Ctrl+Alt+End”.

  4. #4
    Join Date
    May 2008
    Posts
    63

    Re: How to set a shortcut key for label in Vb?

    Hi,
    You can assign the shortcut key to label. But the event will not be fired like buttons.
    If you use the shortcut key, the focus will be set to the next control which as higher tab index.

  5. #5
    Join Date
    May 2008
    Posts
    13

    Re: How to set a shortcut key for label in Vb?

    For no mouse to get to the tollbox use as follows :

    Press Alt on your keyboard, you should notice the File Menu becomes selected, then using the arrow keys scroll accross to view, and press down.
    Using the arrow keys scroll down to Toolbox, and hit enter.
    You should now realise that in VB's IDE the Toolbox is now highlighted, to which you can use either Tab or the arrow keys to navigate arround, pressing Enter to add a control.
    Enjoy.

Similar Threads

  1. creating shortcut keys for a desktop shortcut
    By annroberti in forum Windows XP Support
    Replies: 6
    Last Post: 15-03-2012, 12:34 PM
  2. label inside a rectangle
    By Linux-Us in forum Software Development
    Replies: 2
    Last Post: 21-11-2009, 01:59 PM
  3. What is drive's Volume Label
    By Abbie in forum Hardware Peripherals
    Replies: 3
    Last Post: 13-06-2009, 08:30 PM
  4. Replies: 1
    Last Post: 24-03-2009, 09:30 PM
  5. Motherboard with no label
    By q_nanotubes in forum Motherboard Processor & RAM
    Replies: 2
    Last Post: 09-06-2008, 07:51 PM

Posting Permissions

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