要将控件的属性放到designer.cs文件而不是资源文件中

时间:2019-03-25 05:37:58

标签: c# controls windows-forms-designer

Even if "Localizable" property of the form is false, control's property is added to resource file. 
I want to added it to the designer.cs file instead of resource file.

对此有什么解决方案?

已经尝试

1。 Typedescriptor.addatribute(不确定解决方案)

2。将“可本地化”属性设置为false

this.myControl.LocationF = ((System.Drawing.PointF)(resources.GetObject("myControl.LocationF"))

我想要这个

this.myControl.LocationF = new System.Drawing.PointF(50.0f, 50.0f);

0 个答案:

没有答案