简体   繁体   English

SplitContainer设计与运行是不同的VB.NET VisualStudio

[英]SplitContainer design vs run is different VB.NET VisualStudio

I've been struggling to figure this one out, therefore I figured it was time to finally ask you guys for assistance. 我一直在努力解决这一问题,因此我认为现在是时候向你们寻求帮助了。

I've created a Visual Basic Win Form via Visual Studio to which I added multiple split containers to get different panels. 我已经通过Visual Studio创建了Visual Basic Win Form,并向其中添加了多个拆分容器以获取不同的面板。

The issue that I'm having is that when I run the application, it looks different than what's in my design. 我遇到的问题是,当我运行应用程序时,它看起来与设计中的有所不同。 I have recreated the project several times and have gone through the SplitContainer properties, however, I still can't figure this one out. 我已经多次创建了该项目,并通过了SplitContainer属性,但是,我仍然无法弄清楚这一点。

You can see what I'm talking about here: 您可以在这里看到我在说什么:

范例图片

Any and all assistance is greatly appreciated. 任何帮助都将不胜感激。

The answer was provided by @Jimi: You application is not DPIAware. 答案由@Jimi提供:您的应用程序不是DPIAware。 As a consequence, it's subject to virtualization when the Screen DPI is different from the default 96Dpi. 因此,当Screen DPI与默认的96Dpi不同时,它将受到虚拟化的影响。 See this: How to configure an app to run correctly on a machine with a high DPI setting (eg 150%)? 请参阅以下内容:如何配置应用程序以使其在具有较高DPI设置(例如150%)的计算机上正确运行? . Some notes I've written 我写的一些笔记

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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