Microsoft KB Archive/275182

= PRB: FormResize Appears to Have No Effect When the SIP Is Shown =

Article ID: 275182

Article Last Modified on 11/3/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 Q275182



SYMPTOMS
When you use the FormResize property setting of 0 - vbFormFullSIPResize, the expected behavior is that the complete form is resized when the soft input panel (SIP) is displayed. This does not appear to happen because controls that are on the bottom of the form are covered by the SIP when it is shown.



STATUS
This behavior is by design.



MORE INFORMATION
The form is actually being resized (the height property is changed), but none of the controls are actually moved. This is an implementation detail that is left to the developer.

You can deal with this by using one of several alternatives, two of which are listed here:
 * Change the Top property of the controls in the SIPChange event to display them appropriately.


 * Add a vertical scrollbar when the SIP is shown to handle the user interface (UI) requirements.

Steps to Reproduce the Behavior
 Start a new Windows CE for the Pocket PC project in eMbedded Visual Basic (eVB). Form1 is created by default. Add a CommandButton control to Form1.  Paste the following code into Form1: Private Sub Form_Load Command1.Move 120, 3000 Form1.Caption = &quot;Form height = &quot; & Form1.Height End Sub

Private Sub Form_SIPChange(bSIPVisible As Boolean) Form1.Caption = &quot;Form height = &quot; & Form1.Height End Sub  Run the application, and note that the height of the form is changed when you show and hide the SIP.

Additional query words: wce pocketpc ppc

Keywords: kbprb KB275182

-

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

© Microsoft Corporation. All rights reserved.