C#.net Windows应用程序 [英] C#.net windows application

查看:92
本文介绍了C#.net Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Windows应用程序中,如果我更改屏幕分辨率设置,则所有控件分配都将重置,这看起来不正确.请指导我如何解决问题?

In my windows application, if i change screen resolution setting then all control allignments will get reset, which looks inproper. Please guide me how to solve problem?

推荐答案

您好,nilakshi
基于Windows的代码没有默认的方法来调整其分辨率.
您必须使用以下任一方式

1.使用锚点或码头样式
2.使用表格布局

表布局比Anchor更易于实现.
它会以与在Web应用程序中设计它相同的方式来帮助您. 定义表在 Percent(%)中给出高度和宽度,然后将所有控件都放在表中.

希望对您有帮助
Koolprasad2003
Hi nilakshi
Windows based code has no default way to adjust it''s resolutions.
You have to use either of following way

1. Use Anchor or Dock style
2. Use table layout

Table layout is easy to implement than Anchor.
it will help you the same way you design it in web application.
Define table give Hight and Width in Percent(%) and put your all controls in table.

Hope it helps
Koolprasad2003


这篇关于C#.net Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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