帮助将Windows CE窗体的大小调整为不同的大小和分辨率屏幕 [英] Help Resizing Windows CE Forms to Different Size and Resolution Screens

查看:509
本文介绍了帮助将Windows CE窗体的大小调整为不同的大小和分辨率屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经在VB.Net(Visual Studio 2008)中编写了Windows CE应用程序,但是在使表格缩放以适合具有不同大小和分辨率屏幕的设备时遇到了巨大的问题.我已经花了几天的时间在网上阅读文章,但是每次我认为我理解自动缩放",停靠"和锚定"时,将应用程序部署到另一台设备时都无法正常工作.

我还遇到了一个非常奇怪的问题,在表单加载"事件中,表单的高度和宽度(me.height和me.width)显示为640x480,但是一旦绘制了表单,它们就会更改为480x640.屏幕方向没有问题,我发现屏幕边界始终是正确的,但是me.height和me.width是错误的处理方法.我怀疑这可能会增加我缩放表格的问题,尽管不确定是否是直接原因!

任何人都可以通过单个控件(例如按钮)上传一个非常简单的VB应用程序,该应用程序会自动缩放到使用Windows CE(或Windows Mobile等衍生产品)的任何大小和分辨率的屏幕.如果我能看到一些简单的VB代码(而不是阅读冗长的文章并尝试取消我不理解的C#代码!),我认为这确实对我有帮助

非常感谢

Hi,

I have written a Windows CE application in VB.Net (Visual Studio 2008), but am having a huge problem getting the forms to scale to fit on devices with different size and resolution screens. I have spent days reading articles on the web, but every time I think I understand "auto-scale" and "dock" and "anchor", it fails to work when I deploy the application to another device.

I''ve also run into a really strange issue, where in the "form load" event the form''s height and width (me.height and me.width) show as 640x480, but once the form is painted they change to 480x640. There''s no issue with screen orientation, and I''ve discovered that the screen bounds are always correct, but me.height and me.width are the wrong way around. I suspect this is potentially adding to my problems scaling the form, although am not sure if it''s the direct cause or not!

Could anybody upload a really simple VB application, with a single control (e.g. a button), which auto-scales to whatever size and resolution screen Windows CE (or derivative such as Windows Mobile) is being used. If I could see some simple VB code (rather than reading lengthy articles and trying to unpick C# code that I don''t understand!) I think it would really help me

Many thanks

推荐答案

请参阅我先前对类似问题的回答:
在.net4.0中制作自动灵活的dekstop应用程序 [ ^ ].

—SA
Please see my previous answer to somewhat similar question:
Make auto flexible dekstop application in .net4.0[^].

—SA


这篇关于帮助将Windows CE窗体的大小调整为不同的大小和分辨率屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆