Microsoft KB Archive/263660

= BUG: Click Event May Fire Even Though Command Button Is Hidden =

Article ID: 263660

Article Last Modified on 10/29/2003

-

APPLIES TO


 * Microsoft eMbedded Visual Basic 3.0, when used with:
 * Microsoft Windows CE Platform Software Development Kit for Handheld PC 2000

-



This article was previously published under Q263660



SYMPTOMS
In Windows CE for the PocketPC project, the Click event of a command button still fires even though it is invisible. This behavior does not occur in Microsoft Visual Basic 6.0.



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
 Create a new Windows CE for the PocketPC project in eMbedded Visual Basic. Form1 is created by default. Add a command button and a list box to Form1.  Paste the following code to Form1: Private Sub Command1_Click List1.AddItem &quot;Addition&quot; End Sub

Private Sub Form_Load Command1.Visible = False Command1.Default = True End Sub

Private Sub Form_OKClick App.End End Sub  Press the F5 key to run the project, and then press ENTER. Notice that &quot;Addition&quot; is added to the ListBox control.

Additional query words: evb vbce

Keywords: kbbug kbpending KB263660

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.