Windows窗体按钮正在漂移 [英] Windows Form Buttons are Drifting

查看:98
本文介绍了Windows窗体按钮正在漂移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用Visual Studio 2010,C#WinForms .NET 4.0处理应用程序。



主要形式是设置为可本地化,因此使用xxx.resx作为其按钮位置,大小等。



resx中有一些条目如下:

 < data name =" btnWorkOrders.Location" type =" System.Drawing.Point,System.Drawing"> 
< value> 519,9< / value>
< / data>



但是,在Visual Studio中打开项目并检查"btnWorkOrders"时,Location的属性部分中的值为519,8


< p style ="padding-right:0px;字体大小:14px的;垂直对齐:基线;明确:两者; font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif; line-height:17.8048000335693px">
我的所有按钮控件都会出现这种情况。因此,由于某些原因,visual studio忽略了resx中的值。为什么会发生这种情况,我该如何解决?



请注意,我无法在任何其他项目中重现此内容。只有特定的应用程序。

解决方案

你好teynon,


我正在将你的线程转移到
Windows窗体常规论坛
获得专门支持。感谢您的理解。


最好的问候,


Jack <



I am working on an application using Visual Studio 2010, C# WinForms .NET 4.0.

The main form is set to be localizable and therefore uses a xxx.resx for its button positions, sizes, etc.

There are a few entries in the resx like this:

<data name="btnWorkOrders.Location" type="System.Drawing.Point, System.Drawing">
    <value>519, 9</value>
</data>

However, when opening the project in Visual Studio and inspecting the "btnWorkOrders", the values in the property section for Location is 519, 8

This is happening for all of my button controls. So, for some reason visual studio is ignoring the values in the resx. Why is this happening and how do I fix it?

Note that I can't reproduce this in any other project. Only a specific application.

解决方案

Hi teynon,

I am moving your thread into the Windows Forms General Forum for dedicated support. Thanks for your understanding.

Best Regards,

Jack


这篇关于Windows窗体按钮正在漂移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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