Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

If - Else in Visual Studio 2010 (Windows Forms App.) - Else is not working.

$
0
0

Hi!

I'm working on WFA and I trying to show a message box when the user enters username/password wrong but I can't find where is the mistake.

        {
            if (textBox1.Text == "usario" && textBox2.Text == "password") ;
            {
                Form2 a = new Form2();
                a.Show();
                this.Hide();
            }
            else;
            MessageBox.Show("nombre de usario o contraseña no esta correcto");
        }
    }
}


Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>