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



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

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open Microsoft eMbedded Visual Basic 3.0.
  2. Create a new Windows CE for the Pocket PC project. Form1 is created by default.
  3. Add a TextBox control and a ListBox control to Form1.
  4. Resize the ListBox so that you are able to see several lines.
  5. Paste the following code into Form1:
    Option Explicit
    
    Private Sub Form_Load()
       Text1.Text = ""
    End Sub
    
    Private Sub List1_DblClick()
       List1.Clear
    End Sub
    
    Private Sub Text1_KeyDown(ByVal KeyCode As Integer, ByVal Shift As Integer)
       List1.AddItem "Text1_KeyDown"
    End Sub
    
    Private Sub Text1_KeyPress(ByVal KeyAscii As Integer)
       List1.AddItem "Text1_KeyPress"
    End Sub
    
    Private Sub Text1_KeyUp(ByVal KeyCode As Integer, ByVal Shift As Integer)
       List1.AddItem "Text1_KeyUp"
    End Sub
    					
  6. Run the project and set focus on Text1.
  7. 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.
  8. Release the stylus from the key, and note that the KeyDown, KeyPress, and KeyUp events all fire.

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kbBug kbDSupport KB262039