Multiple choice technology programming languages

How to set a shortcut key for label?

  1. Set UseMnemonic property to True

  2. Set DragMode property to 1

  3. Set LinkMode property to 1

  4. Put & in the lebel caption

Reveal answer Fill a bubble to check yourself
A,D Correct answer
Explanation

To create a shortcut key for a label in Visual Basic, you need to enable mnemonic processing and use the ampersand (&) character in the caption. Setting UseMnemonic to True allows the control to interpret & as a shortcut indicator, and placing & before a letter (like &File) makes that letter the shortcut key. The DragMode and LinkMode properties are unrelated to keyboard shortcuts.