Microsoft KB Archive/262039

= BUG: eVB: SIP Key Events (Up, Press, Down) All Fire at the Same Time =

Article ID: 262039

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft eMbedded Visual Basic 3.0

-



This article was previously published under Q262039



SYMPTOMS
When you have a project that has code in the KeyDown or KeyPress event, and the device on which the project is running uses an SIP (Soft Input Panel) for user input, the code does not run until the stylus is released from a key.



CAUSE
The SIP does not fire the KeyDown or KeyPress event until the stylus is released from the 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
 Open Microsoft eMbedded Visual Basic 3.0. Create a new Windows CE for the Pocket PC project. Form1 is created by default. Add a TextBox control and a ListBox control to Form1. Resize the ListBox so that you are able to see several lines.  Paste the following code into Form1: Option Explicit

Private Sub Form_Load Text1.Text = &quot;&quot; End Sub

Private Sub List1_DblClick List1.Clear End Sub

Private Sub Text1_KeyDown(ByVal KeyCode As Integer, ByVal Shift As Integer) List1.AddItem &quot;Text1_KeyDown&quot; End Sub

Private Sub Text1_KeyPress(ByVal KeyAscii As Integer) List1.AddItem &quot;Text1_KeyPress&quot; End Sub

Private Sub Text1_KeyUp(ByVal KeyCode As Integer, ByVal Shift As Integer) List1.AddItem &quot;Text1_KeyUp&quot; End Sub  Run the project and set focus on Text1.</li> Bring up the SIP, use the stylus to select one of the characters, but do not release the stylus from the key. Note that the KeyDown and KeyPress events do not fire.</li> Release the stylus from the key, and note that the KeyDown, KeyPress, and KeyUp events all fire.</li></ol>

Additional query words: wce vbce evb

Keywords: kbbug kbpending KB262039

-

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

© Microsoft Corporation. All rights reserved.