如何创建用户名使用VS2010的密码 [英] How to create user name & password using VS2010

查看:309
本文介绍了如何创建用户名使用VS2010的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#2010 Windows窗体和编码创建用户名和密码

(通过学生日志进行测试,并登录到老师以修改或删除问题)

how to create user name and password by using C# 2010 windows form and coding

(Through the Student Log to make testing and also login to the teacher for a modification or deletion of questions)

推荐答案

它可以非常简单,采用默认格式您的新C#项目创建,添加两个标签,用户名和密码,在每个标签旁边放置一个文本框,在密码文本框上,将mask属性设置为true.

添加一对按钮,例如"Log On"和"Quit"

您的登录"按钮上的click事件应从文本框中读取用户名和密码,并进行验证后进行的所有操作.

我建议将其放在自己的程序集中-这样,您可以将其重新用于需要用户名/密码验证的任何项目
It can be very simple, take the default form that your new C# project creates, add two labels, Username and Password, place a text box beside each, and on the the password text box, set the mask property to true.

Add a pair of buttons called for example "Log On" and "Quit"

The click event on your "Log On" button should read the username and password from the textboxes and do what ever validation you instuct it to.

I suggest putting this in its own assembly - that way you can re use it for any project that requires Username/Password validation


您可以使用用户名和密码创建自己的登录屏幕. VS2010通过以下步骤为您准备好了登录表单

1.创建新项目
2.右键单击解决方案资源管理器->添加新项目->选择登录表单

这是一个很好的登录代码示例

登录代码 [
You can create your own login screen with username and password. VS2010 gives u ready login form with following steps

1. Create new project
2. right click in solution explorer --> add New item --> select Login form

and here is good login code example

Login code[^]


您会在这里找到这种类型的几个项目:
http://www.1000projects.com/new/dotnet/major/main.html [ ^ ]
You would find several projects of this type here:
http://www.1000projects.com/new/dotnet/major/main.html[^]


这篇关于如何创建用户名使用VS2010的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆