摘要:
用VS建两个项目(CustomControlSample, TestControl), 项目类型分别是类库(不是内裤!!!), Windows应用程序. 1using System.Windows.Forms; 2using System.Drawing; 3 4namespace CustomControlSample 5{ 6 public class FirstContr... 阅读全文
摘要:
下面介绍一种只需对现有代码做较小改动的方法。 在 Visual Studio 的设计视图中,如果在 Properties 窗口中改变了程序的默认界面语言(Language),我们会注意到无论是工程还是窗体对应的 .Designer.cs 文件都会有显著的改变。比如,我们创建一个叫 MyForm 的 form,并且添加一个叫 MyButton 的按钮。 在改变窗体 Properties 中的 L... 阅读全文