i have three buttons and i want to disable a button until the first is pressed.
Can anyone give me a clue, i guess is with if statements, but i don't know to do it.

Recommended Answers

All 2 Replies

If you start with

Button2.Enabled = False
Button3.Enabled = False

then in the button click handler for Button 1 you just set Enabled = True for either or both of the other buttons.

Insert 3 Command Buttons on your form , namely Command1 , Command2 , Command3

Private Sub Form_Load()
  Command2.Enabled = False
  Command3.Enabled = False
End Sub

Private Sub Command1_Click()
  Command2.Enabled = True
  Command3.Enabled = True
End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.