Good evening, in my project in vb6, I have 1 Product form, in it I have 2 command buttons, cmdNew and cmdSaves, cmdSaves is set to Enabled = False, how do I ensure that when I click on cmdNew it (cmdSaves) is set to enabled = True?
Below is my current code that doesn’t work:
Private Sub cmdNew_Click()
Me.cmdSalvar.Enabled = True
End Sub
I also tried to do a select case looking for the captions but it didn’t work.
I also tried to create functions that did this, and that were called when clicking cmdNew, but it didn’t work either.
Guilherme Pacheco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.