Article ID: 247963
Article Last Modified on 8/19/2005
APPLIES TO
- Microsoft Windows CE Toolkit for Visual Basic 6.0
This article was previously published under Q247963
SUMMARY
This article illustrates how to call the SipShowIM API to activate the virtual keyboard on a Palm-size PC device running Windows CE 2.11 using either the Microsoft Windows CE Toolkit for Visual Basic 6.0 (VBCE) or eMbedded Visual Basic 3.0 (eVB).
MORE INFORMATION
Step by Step Example
- Create a new Windows CE Palm-size PC project in either Visual Basic or eMbedded Visual Basic. Form1 is created by default.
- Place two CommandButtons on Form1.
Paste the following code into Form1:
Option Explicit Declare Function SipShowIM Lib "coredll" (ByVal flags As Long) As Long Private Sub Form_Load() Command1.Caption = "Show Keyboard" Command2.Caption = "Hide Keyboard" Form1.Caption = "SipShowIM Sample" End Sub Private Function Showkeyboard() As Long Showkeyboard = SipShowIM(1) End Function Private Function Hidekeyboard() As Long Hidekeyboard = SipShowIM(0) End Function Private Sub Command1_Click() Showkeyboard End Sub Private Sub Command2_Click() Hidekeyboard End Sub
- Run the project and click the CommandButtons to show and hide the virtual keyboard.
NOTE: This sample only runs on the device and not in the emulator.
NOTE: On PocketPC and PocketPC2002 devices, the SIP can be displayed using the SIPVisible property of the Form object.
REFERENCES
209014 How To Call Windows CE APIs from VBCE
Additional query words: vbce vbce6 wce sipinfo SHSipInfo eVB sip
Keywords: kbhowto kbtoolkit KB247963