BUG: Access Key Works When UseMnemonic is Set to False
ID: Q215415
|
The information in this article applies to:
-
Microsoft Windows CE Toolkit for Visual Basic 6.0, version 1.0
SYMPTOMS
When the UseMnemonic property of a Label is set to False, the interface of the Label control displays any ampersand (&) appearing in the text of the Caption property as an ampersand. The character following the ampersand should not act as an access key.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
Steps to Reproduce Behavior
- Start a new Windows CE HPC Project in Visual Basic. Form1 is created by default.
- In the Project Properties dialog box, select Handheld PC (Default Device) as the target.
- Place two label controls and two command buttons on Form1.
- Make sure that the following properties are set at design time:
Control |
Property |
Value |
Label1 |
TabIndex |
0 |
Label1 |
Caption |
"&F" |
Label1 |
UseMnemonic |
False |
Command1 |
TabIndex |
1 |
Label2 |
TabIndex |
2 |
Label2 |
Caption |
"&T" |
Command2 |
TabIndex |
3 |
- Run the project.
- Press the ALT+T key combination and note that Command2 gets the focus. Click the ALT+F keys and note that Command1 gets the focus. Because Label1 has its UseMnemonic property set to False, you do not expect that clicking the ALT+F keys would have an affect on the application.
REFERENCES
Windows CE Toolkit Help
Additional query words:
vbce vbce6 wce wince
Keywords : kbToolkit kbVBp600 kbWinCE kbWinCE100bug kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug