如何通过C#代码为表格设置精确的分辨率 [英] how to set exact resolution for form through the c# code

查看:74
本文介绍了如何通过C#代码为表格设置精确的分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

IAM在Windows中创建一个C#MDI应用程序

创建我的应用程序后,该exe文件仅显示子窗体.

ithink我们必须为表单设置默认或精确分辨率

如何在MDI应用程序中为我们的子窗体设置默认分辨率.

任何人都可以提供任何示例代码来为mdiapplication子表单设置确切的分辨率.

hello

iam creating one c# mdiapplication in windows

after create my application , that exe file showing child form off part only.

ithink we must set defualt or exact resolution to our form

how to set default resolutions to our child form in mdi application.

any one give any example code for set exact resolution for mdiapplication child form.

推荐答案

您无法设置DPI(DPI设置在OS范围内,并且可以设置由用户).您可以根据DPI调整布局,例如,参见此StackOverflow线程 [ ^ ].

请参见此处 [
You can''t set the DPI (the DPI setting is OS-wide and set by the user). What you can do is make adjustments to your layout based on the DPI, for example see this StackOverflow thread[^].

See here[^] for more information about what .Net does for you automatically.


这篇关于如何通过C#代码为表格设置精确的分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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