简体   繁体   中英

Resolution problem in C# .NET Winform application

I have developed my winform application without caring about the resolution. Now am stuck up on PCs with a lower resolution. What to do now? Is there any way of conversion? I mean can the application get the resolution of the PC on which it is running, and set itself accordingly? Is there not any code or variable of Resolution in Windows which can be used ?

您可以使用VirtualScreen.Size获取解决方案。

很难建议......当你创建表格时,你应该注意较小的屏幕: http//www.techrepublic.com/article/manage-winform-controls-using-the-anchor-and-dock-properties/ 6165908

如果想要真正的分辨率独立性,那么您应该使用Windows Presentation Framework进行开发

You could use

 Screen.PrimaryScreen.WorkingArea.Size;

and play with control anchoring. This is how I did it. Problem also discussed: fit windows form to any screen resolution

There are a lot of solutions for the problem given but most are based around the fact that you can build them into you're application from the start.

Simply manually changing the layout of you're application might be the 'fastest' way to go.

Getting 10 users to use a higher resolution might cost 10 * 100 dollar changing the application might costs 40 hours depending on application size.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM