-
I have a VB 6.0 app that I have created a toolbar in. I have been using command buttons instead of a toolbar. I need to disable one of the buttons a times. I have been Form1.Command3.Enabled = False
But now that I have changed to the toolbar I do not know how to do this. I am new to VB so please be as specific as possible.
Thanks Alot,
-
Try:
Code:
Toolbar1.Buttons(Index).Enabled = False
-
Try this,
Toolbar1.Buttons.Item(1).Enabled = False
It works on thfirst button just change the Item number to which ever button you are using.
Be gental this is my first answer post.
Well done parksie i was just working it out.
Spud
-
Hehe. I suppose there's more than one way to do the same thing. The more the merrier! (Although I think Perl takes this to extremes :()
-
parksie beleve me just getting an answer amazies me its good to know that you can help and get some satisfaction in that you are learning to. I just hope that Paul Warren sees it that way
Cheers
Spud
-
I think he does, and it's not that he wants the thanks, it's that it annoys him when you get treated badly by the people you're trying to help. And we're all learning - it would be arrogant to think that we knew everything.
-
-
Cheers!
Code:
|----| *gulp* | |
\_ _/ ==> \_ _/
|| ||
------ ------