登陆.cs
来自「一个图书管理系统」· CS 代码 · 共 55 行
CS
55 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 图书馆
{
public partial class 登陆 : Form
{
public 登陆()
{
InitializeComponent();
}
private void 登陆_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
int FindIndex;
string strMsg = "";
//System.Data.DataTable table = dataSet11.Tables["pass"];
//DataRow[] rows = table.Select();
FindIndex = comboBox1.FindStringExact(comboBox1.Text);
if (FindIndex < 0)
{
MessageBox.Show("请选择你的名字");
}
else
{
strMsg += comboBox1.SelectedItem.ToString();
strMsg += ",欢迎您使用本系统";
MessageBox.Show(strMsg);
MainForm mf = new MainForm();
mf.Show();
}
}
private void button2_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?