HOWTO: Activate the PsPC Keyboard from a VBCE Application

ID: Q247963


The information in this article applies to:
  • Microsoft Windows CE Toolkit for Visual Basic 6.0, version 1.0


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 the Microsoft Windows CE Toolkit for Visual Basic 6.0.


MORE INFORMATION

Step by Step Example

  1. Start a new Windows CE PsPC Project in Visual Basic.


  2. Place two CommandButtons on Form1.


  3. Paste the following code into Form1:


  4. 
    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 
  5. 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


REFERENCES

Q209014 HOWTO: Call Windows CE APIs from VBCE

Additional query words: vbce vbce6 wce sipinfo SHSipInfo

Keywords : kbToolkit kbVBp600 kbGrpVB kbWinCE211 kbDSupport
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: January 17, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.