简体   繁体   English

如何告诉Visual Studio设计器紧凑型框架设备的正确标题栏高度?

[英]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. 我正在将旧的Compact Framework程序移植到Intermec的CN51硬件。 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. 我有一个问题,就是我无法让Visual Studio 2008理解此操作系统上的标题栏区域是36像素,而不是52像素。

Total screen size is 480x800, and I am able to configure that correctly (Tools -> Options -> Device Tools -> Form Factors). 屏幕总大小为480x800,我可以正确配置该屏幕(工具->选项->设备工具->外形尺寸)。 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. 如果我的表单没有最大化,Visual Studio会将表单的Location设置为0,52,其大小为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. 在运行时,该窗体距屏幕顶部仅32像素,底部有16像素的间隙。

Visual studio does not allow me to change the Location of a form. Visual Studio不允许我更改表单的位置。 I can change its size, but that would get blown away any time I accidentally hit the maximize property in Visual Studio. 我可以更改它的大小,但是一旦我不小心碰到Visual Studio中的maximum属性,该大小就会被吹走。

Is there any way to configure the 'Normal' sized window in VS 2008? 有什么方法可以在VS 2008中配置“普通”大小的窗口? 在此处输入图片说明

Visual Studio 2008 and the WM 6.5.3 DTK behave strange here. Visual Studio 2008和WM 6.5.3 DTK在这里表现得很奇怪。 The Designer preview is incorrect but the device emulator is correct. Designer预览不正确,但设备仿真器正确。 When you start a new project, you can select the target platform, but WM6.5.3 is not listed. 启动新项目时,可以选择目标平台,但未列出WM6.5.3。 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. 左(或后)显示VS2008预览,右显示仿真器。

VS和模拟器的区别

Possibly we will never get a consistent desginer view for that 'old' DTK. 可能我们将永远无法获得关于“旧” DTK的一致的设计者观点。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用CF Winforms Designer使VS2008打开Compact Framework表单 - How do I make VS2008 open Compact Framework forms using CF winforms designer 如何重新同步Visual Studio 2008 Windows窗体设计器? - How do I resync the Visual Studio 2008 Windows Forms Designer? 如何更改Visual Studio的标题栏文本 - How to change the title bar text of Visual Studio Visual Studio 2008专业版-对于智能设备开发,是否自动使用.NET COMPACT Framework? - Visual Studio 2008 Pro - For Smart Device Development, is .NET COMPACT Framework automatically used? Visual Studio Designer对我的TabControl不满意,我能做什么? (.NET / C#) - Visual Studio Designer not happy with my TabControl, anything I can do? (.NET / C#) 如何将菜单还原到Visual Studio 2008菜单栏? - How do I restore a menu to the Visual Studio 2008 menu bar? 如何使Visual Studio的Windows窗体设计器不会删除控件? - How do I keep Visual Studio's Windows Forms Designer from deleting controls? 如何阻止visual studio在设计器中打开我的winforms控件 - How to stop visual studio from opening my winforms controls in the designer 如何告诉Visual Studio始终展开“查找”对话框中的“查找选项”组框? - How do I tell Visual Studio to always expand the “Find options” group box in the Find dialog? 当我更改数据库时,如何知道需要删除哪些内容并将其读取到Visual Studio中的LinqToSql O / R Designer? - When I make a database change, how do I know what needs to be removed and readded to the LinqToSql O/R Designer in Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM