简体   繁体   中英

How do I tell Visual Studio designer the correct title bar height for my compact framework device?

I am working on porting an old Compact Framework program to Intermec's CN51 hardware. I've got a problem in that I can't get visual studio 2008 to understand that the title bar area on this OS is 36 pixels, not 52.

Total screen size is 480x800, and I am able to configure that correctly (Tools -> Options -> Device Tools -> Form Factors). If my form is maximized, everything is fine.

If my form is not maximized, Visual Studio will set the form's Location to 0,52 -- and it's size to 480,748.

At runtime, the form is positioned only 32 pixels from the top of the screen, leaving a 16 pixel gap at the bottom.

Visual studio does not allow me to change the Location of a form. I can change its size, but that would get blown away any time I accidentally hit the maximize property in Visual Studio.

Is there any way to configure the 'Normal' sized window in VS 2008? 在此处输入图片说明

Visual Studio 2008 and the WM 6.5.3 DTK behave strange here. The Designer preview is incorrect but the device emulator is correct. When you start a new project, you can select the target platform, but WM6.5.3 is not listed. You have to switch the project later on, but still get a wrong preview. Left (or back) shows VS2008 preview and right shows the emulator.

VS和模拟器的区别

Possibly we will never get a consistent desginer view for that 'old' DTK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM