BUG: Access Key Works When UseMnemonic is Set to False (215415)



The information in this article 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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a new Windows CE HPC Project in Visual Basic. Form1 is created by default.
  2. In the Project Properties dialog box, select Handheld PC (Default Device) as the target.
  3. Place two label controls and two command buttons on Form1.
  4. Make sure that the following properties are set at design time:
    ControlPropertyValue
    Label1TabIndex0
    Label1Caption"&F"
    Label1UseMnemonicFalse
    Command1TabIndex1
    Label2TabIndex2
    Label2Caption"&T"
    Command2TabIndex3

  5. Run the project.
  6. 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

Modification Type:MinorLast Reviewed:8/19/2005
Keywords:kbBug kbpending kbToolkit KB215415