1.界面控件展示
2.登录界面展示
登录页面代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace 控件
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
comboBox1.SelectedIndex = 0;
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
}
const string tid = "123456", tpwd = "qwer";
const string sid = "654321", spwd = "asdf";
private void button1_Click(object sender, EventArgs e)
{
string id = maskedTextBox1.Text;
string pwd = textBox2.Text;
if (id == "" || pwd == "")
{
MessageBox.Show("请输入必填项");
return;
}
string p =