我在其他PC中运行应用程序时的问题(屏幕更大) [英] Problem When I Run Application In Other Pc(Screen Bigger)

查看:77
本文介绍了我在其他PC中运行应用程序时的问题(屏幕更大)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在笔记本电脑中构建应用程序

当我在PC上运行应用程序时,文本框的大小是扩展的

例如:

笔记本电脑中的MY TextBox是472:20

在PC中的其他屏幕比这个尺寸更大





如何设置此大小472:20没有任何更改

I Build the Application In My Laptop
When i run the application on PC the Text Box is Expansion in size
For Example:
MY TextBox in Laptop is 472:20
in other screen in PC Bigger than this Size


How can set this size 472:20 with out any change

推荐答案

解决方案取决于您使用的应用程序类型和UI库(您几乎总是需要标记它只涉及UI),但所有原则都是相似的。请看我过去的答案:



当屏幕分辨率发生变化时Zom Out出现故障 [ ^ ],

如何停靠按钮,以便它可以用表格调整 [ ^ ],

计算ListView项目,SelectedItems返回错误的值 [ ^ ],

类实现背后的代码 [ ^ ],

GUI外观 - C#.Net [ ^ ]。



参见:无法正确重新设计GUI以获得更好的用户体验 [ ^ ]。



很抱歉,答案和代码示例都是重点关注的d主要是表格。你真的需要解释你在使用什么。使用WPF,您可以获得更大的灵活性;此外,与Forms不同,它更好地抵制所有那些从未添加过无经验的开发人员尝试使用基于手动设计的定位和大小调整的尝试。你也应该克服这些习惯。所有应用程序都应该完全可以调整大小。另见:

发生的事件表单生命周期 [ ^ ],

。没有可视组件的网络组件类 [ ^ ],

在运行时创建带控件的表单 [ ^ ]。



我可以从你的问题中猜出,你是谈论德sktop应用程序,但你有类似的Web应用程序和/或HTML设计问题,我也会回答。许多想法都很相似,但当然,网络上有很多特定的内容。




祝贺4月1日! :-)



我想利用这个机会邀请大家看一下我4月份新发布的1并有一些乐趣:



某些编程方法神经语言程序设计

特别鼓励在评论和讨论中参与此游戏。



谢谢。

-SA
The solution depends on the application type and the UI libraries you are using (you almost always need to tag it as soon as UI is involved), but all principles are similar. Please see my past answers:

Zom Out malfunctions when Screen resolution changes[^],
how to dock button so that it can adjust with the form[^],
Counting ListView items, SelectedItems returns wrong value[^],
Code behind class implementation[^],
GUI Apperance - C#.Net[^].

See also: Can't properly redesign GUI to get better user experience[^].

Sorry that the answers and the code sample are focused mostly on Forms. You really need to explain what you are using. With WPF, you have even more flexibility; also, unlike Forms, it better resists all those never adding attempts of the inexperienced developers to use manual designed-based positioning and sizing. You should also overcome such habits. All applications should be perfectly resizeable. See also:
Event Occurring in the Form Life Cycle[^],
.Net Component classes without visual components[^],
create form with controls in runtime[^].

As I can guess from your question, you are talking about "desktop applications", but you have similar issues with Web applications and/or HTML design, I'll answer, too. Many ideas are similar, but, of course, there is a lot specific to the Web.


Congratulations with 1st of April! :-)

I would like to use the occasion to invite everyone to see my new 1 of April publication and have some fun:

Some Programming Approaches to "Neuro-Linguistic Programming".
Participation in this game in Comments and Discussions is especially encouraged.

Thank you.
—SA


您的PC上可能已激活字体缩放。检查桌面 - 右键单击​​ - >个性化 - >显示。可能有125%或150%被激活。
Probably you have font scaling activated on your PC. Check Desktop-Right-Click -> Personalize -> Display. Probably there's 125% or 150% activated.


这篇关于我在其他PC中运行应用程序时的问题(屏幕更大)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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