问题描述
publicclassForm1:System.Windows.Forms.Form————————System.Windows.Forms.Form是类基吗?{privateSystem.Windows.Forms.Labellabel1;---------------------------下面是声明东西的吗?System.Windows.Forms是啥???privateSystem.Windows.Forms.Labellabel2;privateSystem.Windows.Forms.Labellabel3;privateSystem.Windows.Forms.Labellabel4;privateSystem.Windows.Forms.Labellabel5;privateSystem.Windows.Forms.ListBoxlstList;privateSystem.Windows.Forms.TextBoxtxtID;privateSystem.Windows.Forms.TextBoxtxtName;privateSystem.Windows.Forms.ButtonbtnAdd;privateSystem.Windows.Forms.ButtonbtnMdi;privateSystem.Windows.Forms.ButtonbtnDel;privateSystem.Windows.Forms.ButtonbtnExit;privateSystem.Windows.Forms.CheckedListBoxClstCourse;privateSystem.Windows.Forms.ComboBoxcmbSpecialty;privateSystem.Windows.Forms.GroupBoxGB1;privateSystem.Windows.Forms.ErrorProvidererrtxtID;privateIContainercomponents;publicForm1(){////Windows窗体设计器支持所必需的//InitializeComponent();////TODO:在InitializeComponent调用后添加任何构造函数代码//}///<summary>///清理所有正在使用的资源。///</summary>protectedoverridevoidDispose(booldisposing){if(disposing){if(components!=null){components.Dispose();}}base.Dispose(disposing);}#regionWindows窗体设计器生成的代码///<summary>///设计器支持所需的方法-不要使用代码编辑器修改///此方法的内容。///</summary>privatevoidInitializeComponent(){this.components=newSystem.ComponentModel.Container();this.label1=newSystem.Windows.Forms.Label();this.GB1=newSystem.Windows.Forms.GroupBox();this.cmbSpecialty=newSystem.Windows.Forms.ComboBox();this.label5=newSystem.Windows.Forms.Label();this.label4=newSystem.Windows.Forms.Label();this.ClstCourse=newSystem.Windows.Forms.CheckedListBox();this.txtName=newSystem.Windows.Forms.TextBox();this.label3=newSystem.Windows.Forms.Label();this.txtID=newSystem.Windows.Forms.TextBox();this.label2=newSystem.Windows.Forms.Label();this.lstList=newSystem.Windows.Forms.ListBox();this.btnAdd=newSystem.Windows.Forms.Button();this.btnMdi=newSystem.Windows.Forms.Button();this.btnDel=newSystem.Windows.Forms.Button();this.btnExit=newSystem.Windows.Forms.Button();this.errtxtID=newSystem.Windows.Forms.ErrorProvider(this.components);this.GB1.SuspendLayout();((System.ComponentModel.ISupportInitialize)(this.errtxtID)).BeginInit();this.SuspendLayout();///</summary>[STAThread]staticvoidMain(){Application.Run(newForm1());}
解决方案
解决方案二:
你所建立的Form继承于System.Windows.Forms.Form那下面就是设计器根据你的设计创建的控件
解决方案三:
是基类
解决方案四:
我是菜鸟,希望你们说的通俗点。帮忙把代码分析一下它们的作用
解决方案五:
该回复于2011-11-28 09:21:33被版主删除
解决方案六:
菜鸟就不要研究系统的东东,等理解了再看好了,哈哈
解决方案七:
如果不是来解决问题聊天的可以去别的地方
解决方案八:
就是在你的窗体上初始化了一些控件