-3
The following form does not open when the password is correct and if it is wrong continues to pass even if the password has typed 3 times.
private void btnEntrar_Click(object sender, EventArgs e)
    {
        int erro=0;
        if (senha != "")
        {
            while(erro<=2)
            { 
                String verifica = txtVerifica.Text;
                if (verifica == senha)
                {
                    if (Application.OpenForms.OfType<Desenvolvimento>().Count() > 0)
                    {
                        Form desenvolvimento = Application.OpenForms["Desenvolvimeto"];
                        desenvolvimento.Show();
                        this.Hide();
                    }
                    else
                    {
                        Desenvolvimento desenvolvimento = new Desenvolvimento();
                        desenvolvimento.Show();
                        this.Hide();
                    }
                }
                else
                {
                    if (erro == 3)
                    {
                        MessageBox.Show("Três tentativas !");
                        Application.Exit();
                    }
                    else
                    {
                        erro=erro+1;
                        MessageBox.Show("Senha inválida !");
                        break;
                    }
                }
            }
        }
        else
        {
            MessageBox.Show("Cadastre uma senha !");
            txtSenha.Focus();
        }
    }
						
Why are you wearing
while?– NoobSaibot