|
楼主 |
发表于 2014-3-14 13:41:41
|
显示全部楼层
#region Text部分
var textBox_NewUserName = new System.Windows.Forms.TextBox();
textBox_NewUserName.Location = new System.Drawing.Point(61, 169);
textBox_NewUserName.Name = "textBox_NewUserName";
textBox_NewUserName.Size = new System.Drawing.Size(195, 21);
textBox_NewUserName.TabIndex = 19;
this.Controls.Add(textBox_NewUserName);
var textBox_NewPassWord1 = new System.Windows.Forms.TextBox();
textBox_NewPassWord1.Location = new System.Drawing.Point(61, 196);
textBox_NewPassWord1.Name = "textBox_NewPassWord1";
textBox_NewPassWord1.Size = new System.Drawing.Size(195, 21);
textBox_NewPassWord1.PasswordChar = '*';
textBox_NewPassWord1.TabIndex = 20;
this.Controls.Add(textBox_NewPassWord1);
var textBox_NewPassWord2 = new System.Windows.Forms.TextBox();
textBox_NewPassWord2.Location = new System.Drawing.Point(61, 223);
textBox_NewPassWord2.Name = "textBox_NewPassWord2";
textBox_NewPassWord2.Size = new System.Drawing.Size(195, 21);
textBox_NewPassWord2.PasswordChar = '*';
textBox_NewPassWord2.TabIndex = 21;
this.Controls.Add(textBox_NewPassWord2);
var textBox_IDRka = new System.Windows.Forms.TextBox();
textBox_IDRka.Location = new System.Drawing.Point(61, 250);
textBox_IDRka.Name = "textBox_IDRka";
textBox_IDRka.Size = new System.Drawing.Size(195, 21);
textBox_IDRka.TabIndex = 22;
this.Controls.Add(textBox_IDRka);
var textBox_IDXka = new System.Windows.Forms.TextBox();
textBox_IDXka.Location = new System.Drawing.Point(61, 277);
textBox_IDXka.Name = "textBox_IDXka";
textBox_IDXka.Size = new System.Drawing.Size(195, 21);
textBox_IDXka.TabIndex = 23;
textBox_IDXka.MouseDown += new System.Windows.Forms.MouseEventHandler(this.textBox_UserName_Click);
this.Controls.Add(textBox_IDXka);
#endregion
这里是我清理掉后用代码弄出来的控件,运行上面没有问题,但是我想做一个判断就是TEXT里面有没有东西,我在方法里面找不到那个控件
大神 还需要什么代码? |
|