title: How to make a combo box password
body: <p>How do I make a combo box password or button password? I got this code and it does not work.</p>
  
  <pre><code>Public Class Form1
  
    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
      If ComboBox1.Text = "5" Then
          If ComboBox2.Text = "3" Then
              If ComboBox3.Text = "2" Then
                  If ComboBox4.Text = "6" Then
                      Button1.Enabled = True
                  End If
              End If
          End If
      End If
    End Sub
  
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      MsgBox("Dony", MsgBoxStyle.Information, "Dony")
      Application.Exit()
    End Sub
  </code></pre>
  
  <p>When combo box's item is 5, then it will allow the other combo box to be 3 and if the second combo box is 3 it will allow the third combo box to be 6 and if that happens it will allow the fourth combo box to be 2 and then if that happens the button is enabled.</p>
  
  <p>Anyone help?</p>