using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CCWin;
using System.Data.SqlClient;
namespace QFrom
{
public partial class FrmLogin : Skin_Mac
{
public FrmLogin()
{
InitializeComponent();
}
//用户登录文本框敲回车键
private void userTex_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
PwdTex.Focus();
}
}
//用户密码文本框敲回车键
private void PwdTex_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
}
}
string strconn = ConfigurationManager.ConnectionStrings["sqlconn"].ConnectionString;
//登录
private void LoginBtn_Click(object sender, EventArgs e)
{
using (SqlConnection con = new SqlConnection(strconn))
{
using (SqlCommand com = new SqlComm
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CCWin;
using System.Data.SqlClient;
namespace QFrom
{
public partial class FrmLogin : Skin_Mac
{
public FrmLogin()
{
InitializeComponent();
}
//用户登录文本框敲回车键
private void userTex_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
PwdTex.Focus();
}
}
//用户密码文本框敲回车键
private void PwdTex_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
}
}
string strconn = ConfigurationManager.ConnectionStrings["sqlconn"].ConnectionString;
//登录
private void LoginBtn_Click(object sender, EventArgs e)
{
using (SqlConnection con = new SqlConnection(strconn))
{
using (SqlCommand com = new SqlComm