这段c#代码怎么解?

来源:百度知道 编辑:UC知道 时间:2024/09/21 11:24:57
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace bolg2009
{
public partial class FormZhuCe : Form
{
MyDb MyDb2 = new MyDb();
public FormZhuCe()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
if (textName.Text == "")
{
labeljiance.Visible = true;
buttonjiance.Visible = false;
labeljiance.Text = "用户名不能为空";

}
}

private void FormZhuCe_Load(object sender, EventArgs e)
{

}

}

private void textName_TextChanged(obje

用户登入注册程序,string jiance = "select count(*) from tester where name = '" + textName.Text + "'";查询数据库是否有输入的用户名
string zhuce = "insert into tester(name,passwd,jifen,tishu,duishu) values ('" + textName.Text + "','" + textPasswd.Text + "',0,0,0" + ")";向tester数据库插入数据

登入成功 ZhuForm3.Show();打开主程序

这是个登录吧?楼主具体想问什么?

就是啊 用来添加用户注册的

简单的用户注册界面

注册好不好。。。