青岛办健康证体检表:能不能将数字库连接到这个程序中呀,

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 11:11:06
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace LoginApp
{
/// <summary>
/// Form2 的摘要说明。
/// </summary>
public class Form2 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtUserName;
private System.Windows.Forms.TextBox txtPwd;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnOK;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;

public Form2()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();

//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}

/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form2));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txtUserName = new System.Windows.Forms.TextBox();
this.txtPwd = new System.Windows.Forms.TextBox();
this.btnCancel = new System.Windows.Forms.Button();
this.btnOK = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(16, 24);
this.label1.Name = "label1";
this.label1.TabIndex = 0;
this.label1.Text = "用户名";
//
// label2
//
this.label2.Location = new System.Drawing.Point(16, 64);
this.label2.Name = "label2";
this.label2.TabIndex = 1;
this.label2.Text = "密码";
//
// txtUserName
//
this.txtUserName.Location = new System.Drawing.Point(120, 24);
this.txtUserName.Name = "txtUserName";
this.txtUserName.TabIndex = 2;
this.txtUserName.Text = "";
this.txtUserName.TextChanged += new System.EventHandler(this.txtUserName_TextChanged);
//
// txtPwd
//

还有一部分在这http://zhidao.baidu.com/question/7719795.html#
http://zhidao.baidu.com/question/7720045.html
http://zhidao.baidu.com/question/7720046.html
http://zhidao.baidu.com/question/7719795.html#

提高一点赏分吧