Question

Locked

Creating a Login form using visual basic (in Visual Studio 2005 Profession)

By z_nziramasanga ·
Would any1 be able to assist me with creating a login form using the above mentioned language. The password will be stored in SQL server any suggestions will be most appreciated.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Something like this

by Tony Hopkinson In reply to Creating a Login form usi ...

Create a new form

Stick labels and textboxes on it to display login details.

set the passwordchar property of the password textbox, so the password can't be seen as it's typed in. (* is the usual one)

In the OK and Cancel buttons set the DialogResult property.

In the form code define two public properties that read from and write to to the TextBox's texts properties.

Then in your mainform
add a login button, menu option ...

in the click event

frmLogin LoginForm;

LoginForm = new frmLogin()
LoginForm.UserName = DBUserName;
if (LoginForm.ShowDialog == DialogResult.OK)
{
DBPassword = LoginForm.Password;
}
LoginForm.Close();

Back to Networks Forum
2 total posts (Page 1 of 1)  

Hardware Forums