下载此文档

C#登录窗口代码-有图.docx


文档分类:IT计算机 | 页数:约2页 举报非法文档有奖
1/2
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/2 下载此文档
文档列表 文档介绍
精品文档,仅供学****与交流,如有侵权请联系网站删除
【精品文档】第 1 页
using System;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
namespace AC
public partial class Form1 : Form
public Form1()
InitializeComponent();
private void button1_Click(object sender, EventArgs e)
string uname = ();
string upassword = ();
SqlConnection thisconnection = new SqlConnection(@"Server=SQL连接名;Integrated Security=True;" + "DataBase=数据库名");
();
SqlCommand thiscommand = ();
= "select ID,PS from 表名 where ID='" + uname + " '";
SqlDataReader thisreader = ();
if (())
if (thisreader["PS"].ToString().Trim() == upassword)
("恭喜您登陆成功!", "登陆成功!", , );
//yhxx tt = new yhxx();
//();
//();//关闭当前窗体
//new Form1().Hide();

C#登录窗口代码-有图 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数2
  • 收藏数0 收藏
  • 顶次数0
  • 上传人jiquhe72
  • 文件大小11 KB
  • 时间2021-12-03
最近更新