商超登录界面

1.登陆界面效果图

捕获.PNG

2. 登录界面实现的功能描述

该界面是设计是应用给工作人员登录商超系统,这个系统能给与不同人群不同的工作权限。例如后台管理人员和实际应用的收银员在选择了不同的登录方式后所得到的权限是完全不一样的。界面有许多的功能,如选择登录方式,忘记密码,等一系列实用且精美的设计。

3. 登录界面各控件的参数设置

label1

属性 值
TEXT 用户类型

label2

属性 值
TEXT 用户类型

label3

属性 值
TEXT 用户类型

Linklabel1

属性 值
TEXT 忘记密码?

comboBox1

属性 值
DropDownStyle DropDownList
SelectedIndexChanged comboBox1_SelectedIndexChanged

textBox1

属性 值
MaxLength 9
Click textBox1_Click
KeyPress textBox1_KeyPress
TextChanged textBox1_TextChanged

textBox2

属性 值
MaxLength 9
Click textBox1_Click
KeyPress textBox2_KeyPress
Enter text Box1_Enter
MaxLength 6
Passwordchar

button1

属性 值
Text 登陆
UseVisualStyleBackColor False
Click button1_Click

button2

属性 值
Text 退出
UseVisualStyleBackColor False
Click button2_Clik

4. 重要方法描述

private void button1_Click(object sender, EventArgs e)
{
    if (this.comboBox1.SelectedItem.ToString() == "收银员")
    {
        if (this.textBox1.Text == "123456789" && this.textBox2.Text == "123456")
        {
            MessageBox.Show("收银员登录成功");
        }
        else
        {
            MessageBox.Show("用户名或密码错误", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
    }
}

private void label3_Click(object sender, EventArgs e)
{
   




private void Form1_Load(object sender, EventArgs e)
{
    this.comboBox1.SelectedIndex = 0;
    

}

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
    this.comboBox1.SelectedIndex = 0;
}

private void textBox1_TextChanged(object sender, EventArgs e)
{
  
}

private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyChar == (char)Keys.Enter)
    {
        SendKeys.Send("{tab}");
    }
}

private void textBox2_TextChanged(object sender, EventArgs e)
{
}

private void button2_Click(object sender, EventArgs e)
{
    Application.Exit();
}

private void textBox1_Enter(object sender, EventArgs e)
{
    ((TextBox)sender).SelectAll();
}

private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyChar == (char)Keys.Enter)
    {
        SendKeys.Send("{tab}");
    }
}

private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyChar == (char)Keys.Enter)
    {
        SendKeys.Send("{tab}");
    }
}
}

5.尚需完善的功能

暂时没想到

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 一:创造窗体。 二:登录界面的制作 1.在工具箱中选择控件:Lable Lable1——用户类型Lable2——用...
    啊哈_aec3阅读 540评论 2赞 2
  • 一、界面效果图 二、登录界面功能介绍1、登录界面出现在屏幕正中央,并不可被放大或缩小(效果图中可看到无放大缩小框)...
    Excellent_45d4阅读 986评论 0赞 0
  • 1. 登陆界面效果图: 2.登录界面实现的功能描述: (1)收银员或库管员登陆商超管理系统。 3. 登录界面各控件...
    196c0b9010f6阅读 540评论 0赞 0
  • 一、登录界面图 二、登录界面实现功能介绍 1、登录窗口要求 (1)登录时窗口出现在屏幕正中央,并且不能放大缩小。 ...
    遥远的她_3dfd阅读 7,897评论 0赞 0
  • 一,登录界面图 二, 登录界面实现的功能描述1.登录类型默认收营员 2.登录类型通过下拉的方式选择收营员或者库管员...
    You_bc4c阅读 435评论 0赞 0

友情链接更多精彩内容