TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
gemma browse
NA
10
61.3k
inserting a passwork to a form on c#
Dec 14 2010 6:02 PM
private void button6_Click(object sender, EventArgs e){
{
public partial class frmPassword : Form
{
public frmPassword()
{
InitializeComponent();
}
public bool LoginOk { get; private set; }
private void btnEnter_Click(object sender, EventArgs e)
{
LoginOk = txtpas.Text == "password";
string pas = "password";
this.visible = false;
int count = 0;
if (btnEnter.Enabled && count < 3)
{
if (this.txtpas.Text != pas)
{
count++;
MessageBox.Show("You have entered the wrong password" +
"/n you only have " + count + "tries left!");
}
else if (this.txtpas.Text == pas)
{
PickLarger formpicklarger = new PickLarger();
formpicklarger.Show();
}
}
}
theres something wrong with the bracket on the 2nd line anyideas why it is } expected?
Reply
Answers (
2
)
My small app. help with code needed
Luhn’s algorithm