-1

我们目前严格使用 Visual Studio 2010 中的文本编辑器管理和编辑所有基于 c# winform 的界面。

无论如何,我们是否可以获取我们的源文件并让我们可以使用可视化 Winform 编辑器来编辑它们?

4

1 回答 1

1

If you give your .cs files a designer.cs and a .resx file, Visual Studio will allow you to open them up in the visual editor. The catch is that you will have to create a partial class of your original .cs object and move the code for the visual elements into the Designer.cs file. So if you have a file

SomeClass.cs

you will need to add

SomeClass.cs
    SomeClass.designer.cs
    SomeClass.resx

Once you add them, visual studio will automatically figure out they are supposed to be related and allkow you to open them in the visual editor.

于 2013-03-29T19:10:26.957 回答