English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to set custom letter combos to do diffrent things in my program like in word you type shift and s and it saves your document. So how can I make custom ones in Visual Basic.Net?
Code or links Please

2007-02-11 03:02:17 · 2 answers · asked by sbraidley 3 in Computers & Internet Programming & Design

2 answers

The easiest way is to place a menu strip on your form. Each item in a menu can have a short cut key assigned to it. In VB2005 there are popup check boxes to assign the ctrl, alt and shift keys to whatever letter is assigned. VB2003 has a scroll down list of available short cuts

When naming menu and buttons text/caption placing an ampersand (&) in front of a letter will cause it to be underlined and it will be usable as an ALT + key shortcut.

With menu items you can have the underlying menu click event call the relavant sub routine or function instead of placing the code in the menu click event

2007-02-15 00:31:35 · answer #1 · answered by MarkG 7 · 0 0

Annabelle Ruby Matilda Alice Eleanor Kate Lucas Avery Declan Maxwell Emerson Levi “Belle, Matti, Ellie, Luke, Dex, and Emery” BQ: Annabelle Ruby for women and Lucas Avery for boys

2016-10-01 23:16:59 · answer #2 · answered by ? 3 · 0 0

fedest.com, questions and answers