图书的税率是多少:能不能将数字库连接到这个程序中呀,

来源:百度文库 编辑:神马品牌网 时间:2024/05/13 07:44:54
this.txtPwd.Location = new System.Drawing.Point(120, 64);
this.txtPwd.Name = "txtPwd";
this.txtPwd.TabIndex = 3;
this.txtPwd.Text = "";
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(96, 96);
this.btnCancel.Name = "btnCancel";
this.btnCancel.TabIndex = 4;
this.btnCancel.Text = "Cancel";
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// btnOK
//
this.btnOK.Location = new System.Drawing.Point(16, 96);
this.btnOK.Name = "btnOK";
this.btnOK.TabIndex = 5;
this.btnOK.Text = "OK";
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
// Form2
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(224, 149);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.txtPwd);
this.Controls.Add(this.txtUserName);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "Form2";
this.Text = "登入";
this.ResumeLayout(false);

}
#endregion

private void txtUserName_TextChanged(object sender, System.EventArgs e)
{

}

private void btnCancel_Click(object sender, System.EventArgs e)
{

Application.Exit();
}

private void btnOK_Click(object sender, System.EventArgs e)
{

{
Form1 theOwner=(Form1)this.Owner;
if(txtUserName.Text!=theOwner.strUserName)
{
MessageBox.Show("错误的用户名,请重新输入");txtUserName.Focus();
txtUserName.Text="";
}

else if(txtPwd.Text != theOwner.strPassWord)
{
MessageBox.Show("错误密码,请输入");
txtPwd.Focus();
txtPwd.Text = "";
}
else
{
this.DialogResult=DialogResult.OK;}
}

}
}
}
http://zhidao.baidu.com/question/7720045.html
http://zhidao.baidu.com/question/7720046.html
http://zhidao.baidu.com/question/7719795.html#

提高一点赏分吧