Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 2, Problem 1MQ2

Explanation of Solution

Access key for a “Print” button:

An access key is a shortcut to select the object by using “Alt” key with any letter or any number combination.

  • It can be allocated to each control in the interface that accepts the user input.
  • The underlined letter in the interface indicates the access key letter.
    • Access key can be assigned to an object by adding an ampersand (&) in the control’s caption.
    • First letter of the caption of an object is assigned as an access key unless other letter is more meaningful.
  • Generally, for “Print” button, the access key is always the letter “p”...

Blurred answer
Students have asked these similar questions
What happens if you push the Enter key when the focus is on a Button control?
True or False : When you assign an access key to a button, the user can trigger a Click event by typing Alt+ the access key character
How do you assign an access key to a Button control?