[問題] 程式的功用

看板C_Sharp作者 (阿冠)時間16年前 (2009/10/05 22:41), 編輯推噓0(009)
留言9則, 5人參與, 最新討論串1/1
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

10/05 22:48, , 1F
先google查查看 把你查不到或看不懂的部份挑出來問
10/05 22:48, 1F

10/05 23:09, , 2F
這段GOOGLE不出來ˊˋ...
10/05 23:09, 2F

10/05 23:40, , 3F
初始化元件
10/05 23:40, 3F

10/05 23:43, , 4F
在程式執行前會先將form上元件初始化 像lblAccel是label等
10/05 23:43, 4F

10/06 00:40, , 5F
不是我不想幫你 你要想辦法縮小問題範圍
10/06 00:40, 5F

10/06 00:41, , 6F
並且問得更具體 因為沒有人願意一行一行講解給你聽
10/06 00:41, 6F

10/06 00:52, , 7F
老實說...這些程式碼 就算你只看它字面上的名字也都猜得
10/06 00:52, 7F

10/06 00:52, , 8F
出用途是啥...
10/06 00:52, 8F

10/08 17:31, , 9F
Initialize = 初始化
10/08 17:31, 9F
文章代碼(AID): #1AoWMHlU (C_Sharp)