Microsoft KB Archive/209033

= INFO: Maximum Window Sizes for Windows CE Devices =

Article ID: 209033

Article Last Modified on 11/21/2003

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual Basic 6.0
 * Microsoft eMbedded Visual Basic 3.0

-



This article was previously published under Q209033



SUMMARY
This article gives the maximum window sizes your forms can be on Handheld PC, Handheld PC Pro, and Palm-size PC devices. The article also shows how to create a simple project that displays the maximum screen size.



MORE INFORMATION
The following are the maximum window sizes you can display in a Windows CE device.

Handheld PC Device

Handheld PC Pro and Handheld PC 2000 Devices

Palm-size PC and Pocket PC Devices

Notes::
 * There are 1440 Twips per inch.
 * These values are general and may not apply to every device within a category.

To verify these measurements you can create a project that displays the height and width properties of the screen object. The following section shows you how to create a project to display the maximum window size.

NOTE: HPC devices cannot be targeted from eMbedded Visual Basic. PocketPC and HPC 2000 devices cannot be targeted from the Windows CE Toolkit for Visual Basic.

Steps to Create the Sample Project
 Create a new Windows CE project in either Visual Basic or eMbedded Visual Basic. Use the emulation mode for the project. Form1 is created by default. Add a CommandButton to Form1.  Copy the following code to the Form1 code window: Option Explicit

Private Sub Form_Load Command1.Caption = "Maximum Window Size" End Sub

Private Sub Command1_Click Dim strSize As String strSize = "Maximum Height: " & Screen.Height & " Twips" strSize = strSize & vbCrLf strSize = strSize & "Maximum Width: " & Screen.Width & " Twips" MsgBox strSize End Sub  Press F5 to start the project. Click the Maximum Window Size button to display the maximum window size information.

Additional query words: eVB vbce vbce6

Keywords: kbinfo kbtoolkit KB209033

-

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

© Microsoft Corporation. All rights reserved.