Microsoft KB Archive/215415

= BUG: Access Key Works When UseMnemonic is Set to False =

Article ID: 215415

Article Last Modified on 8/19/2005

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual Basic 6.0

-



This article was previously published under Q215415



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 that this is a bug in the Microsoft products that are listed at the beginning of this article.



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:

 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.</li></ol>

<div class="references_section">