作者s77506 (阿冠)
看板C_Sharp
標題[問題] 程式的功用
時間Mon Oct 5 22:41:20 2009
private void InitializeComponent()
{
this.chkExtension = new System.Windows.Forms.CheckBox();
this.lblAccel = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// chkExtension
//
this.chkExtension.AutoSize = true;
this.chkExtension.Location = new System.Drawing.Point(12, 3);
this.chkExtension.Name = "chkExtension";
this.chkExtension.Size = new System.Drawing.Size(87, 16);
this.chkExtension.TabIndex = 0;
this.chkExtension.Text = "chkExtension";
this.chkExtension.UseVisualStyleBackColor = true;
//
// lblAccel
//
this.lblAccel.AutoSize = true;
this.lblAccel.Location = new System.Drawing.Point(33, 75);
this.lblAccel.Name = "lblAccel";
this.lblAccel.Size = new System.Drawing.Size(43, 12);
this.lblAccel.TabIndex = 1;
this.lblAccel.Text = "lblAccel";
this.lblAccel.Click += new
System.EventHandler(this.lblAccel_Click);
//
// WiimoteInfo
//
this.Controls.Add(this.lblAccel);
this.Controls.Add(this.chkExtension);
this.Name = "WiimoteInfo";
this.Size = new System.Drawing.Size(614, 378);
this.Load += new System.EventHandler(this.WiimoteInfo_Load);
this.ResumeLayout(false);
this.PerformLayout();
請問一下這段程式碼 大概是在寫什麼功用
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 211.72.232.81
1F:→ james732:先google查查看 把你查不到或看不懂的部份挑出來問 10/05 22:48
2F:→ s77506:這段GOOGLE不出來ˊˋ... 10/05 23:09
3F:→ kinwind:初始化元件 10/05 23:40
4F:→ kinwind:在程式執行前會先將form上元件初始化 像lblAccel是label等 10/05 23:43
5F:→ james732:不是我不想幫你 你要想辦法縮小問題範圍 10/06 00:40
6F:→ james732:並且問得更具體 因為沒有人願意一行一行講解給你聽 10/06 00:41
7F:→ remmurds:老實說...這些程式碼 就算你只看它字面上的名字也都猜得 10/06 00:52
8F:→ remmurds:出用途是啥... 10/06 00:52
9F:→ optimist9266:Initialize = 初始化 10/08 17:31