Hi,
I am using Visual Basic 6 and am having problems hiding a set of buttons. I have 44 buttons in my form6 that need to be hidden when the form is initially loaded.
I can't attach the code I am using because I am not on the same computer, however I can remember what I did.
Private Sub Form_Load()
cmd1swap1.visible = false
cmd1swap2.visible = false
cmd2swap1.visible = false
Etc...
End Sub
I have checked and rechecked that the buttons actually exist with those names, however I still cannot get it to work. I get the error "Member or data member not found" and the .visible is highlighted in the debug.
Anyone have a solution?
Thanks in advance.
I am using Visual Basic 6 and am having problems hiding a set of buttons. I have 44 buttons in my form6 that need to be hidden when the form is initially loaded.
I can't attach the code I am using because I am not on the same computer, however I can remember what I did.
Private Sub Form_Load()
cmd1swap1.visible = false
cmd1swap2.visible = false
cmd2swap1.visible = false
Etc...
End Sub
I have checked and rechecked that the buttons actually exist with those names, however I still cannot get it to work. I get the error "Member or data member not found" and the .visible is highlighted in the debug.
Anyone have a solution?
Thanks in advance.