RT,本人初学C#,感觉语法什么的与java很相近。但还有很多理论和概念上的东西不懂,望达人指导下我。在此先谢过大家了。
问题:C#容器相关。
1.容器的特征;
2.适用范围;
3.一般操作(创建、置入、取清求容量)

解决方案 »

  1.   

    拿group 举例:
    private System.Windows.Forms.GroupBox groupBox1;//创建
    this.groupBox1 = new System.Windows.Forms.GroupBox();
    this.Controls.Add(this.groupBox1);//置入
                // 
                // groupBox1
                // 
                this.groupBox1.Controls.Add(this.txtTernalName);
                this.groupBox1.Controls.Add(this.btnSendTer);
                this.groupBox1.Controls.Add(this.btnAddxml);
                this.groupBox1.Controls.Add(this.listTernal);
                this.groupBox1.Controls.Add(this.comTernalFun);
                this.groupBox1.Controls.Add(this.label13);
                this.groupBox1.Controls.Add(this.label2);
                this.groupBox1.Controls.Add(this.numTernalAddr);
                this.groupBox1.Controls.Add(this.label1);
                this.groupBox1.Location = new System.Drawing.Point(3, 3);
                this.groupBox1.Name = "groupBox1";
                this.groupBox1.Size = new System.Drawing.Size(218, 443);
                this.groupBox1.TabIndex = 0;
                this.groupBox1.TabStop = false;
                this.groupBox1.Text = "分区配置";this.groupBox1.Controls.Count ;//容量.