Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.

Changing the form size on Windows CE devices

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-31-2010, 08:54 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default Changing the form size on Windows CE devices

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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form size not accurate ExcludeReality Questions (Windows Mobile) 1 07-03-2010 03:25 PM
Great DB With Table Full size windows APP scott93727 Share Your Creations 6 08-26-2009 04:48 AM
Changing the size of a form magi6162 Questions (Windows Mobile) 1 10-24-2007 07:38 AM
screen size to form size relation Cableguy Basic4ppc Wishlist 2 08-14-2007 09:40 PM
Form size problem on PC? agraham Bug Reports 12 07-05-2007 12:00 PM


All times are GMT. The time now is 10:52 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0