Two Hoots Banner



Visual Basic Keyboard Tips

  • Code Window Control Menu Box
Alt and Dash accesses the control menu box of a code window, so you can use these keystrokes -

Alt-Dash-x : Maximize the current window.
Alt-Dash-n : Minimize the current window.
Alt-F4 : Close the code window.

  • Navigation through Code Window Text
Ctrl and Home : Move to the start of the code window text.
Ctrl and End : Move to the end of the code window text.
Add the Shift key to select an entire code window : Ctrl+Home, then Ctrl+Shift+End.
Home : Move to the left hand end of the current line.
Shift and End : Select the entire line.
Ctrl and Right Arrow : Move one word to the right (add Shift to select).
Ctrl and Left Arrow : Move one word to the left (add Shift to select).
Ctrl and F3 : Locates the next occurrence of the highlighted word.

  • Navigation through Procedures
Ctrl and Up : Move to the previous procedure in the current code window.
Ctrl and Down : Move to the next procedure in the current code window.
F2 : Open the View Procedures window for moving directly to other procedures.
Alt and Space : Access the control menu box of the main VB menu window.
Shift and F2 : Used in the code window to go to the selected procedure.

  • General Keyboard Shortcuts
Ctrl and T : Componets Menu.
Ctrl and E : Menu Editor.
Ctrl and F : Find.
Ctrl and H : Replace Text Menu.