Changing the form size on Windows CE devices

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is not possible to change the size of a form on a Windows CE device.
You can however do the following workaround:

- Open the folder: c:\program files\Anywhere Software\Basic4ppc Desktop\Tzor
- Open the file CEnhancedForm.cs with a text editor.
You should change this section (line 54):
#if DEVICE
Other.SetScale(true, b4p.autoScale, this, b4p);
#endif


To:
#if DEVICE
this.ClientSize = new System.Drawing.Size(800, 480 - 52); //Change 800 and 480 to your device width and height.
Other.SetScale(true, b4p.autoScale, this, b4p);
#endif

Save the changes and recompile your program.
 
Top