VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Easy way to enable or disenable all buttons (icons) on a toolbar.

by Brandon (46 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 10th April 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Easy way to enable or disenable all buttons (icons) on a toolbar.

Rate Easy way to enable or disenable all buttons (icons) on a toolbar.




'"8" here is the number of buttons on my toolbar, change this number to
'the number of buttons you have, this number has to be exact.

'to enable all buttons on a toolbar use this code:

For i = 1 to 8
   Toolbar1.Buttons(i).Enabled = True
Next

'to disenable all buttons on a toolbar use this code:
For i = 1 to 8
   Toolbar1.Buttons(i).Enabled = False
Next


Download this snippet    Add to My Saved Code

Easy way to enable or disenable all buttons (icons) on a toolbar. Comments

No comments have been posted about Easy way to enable or disenable all buttons (icons) on a toolbar.. Why not be the first to post a comment about Easy way to enable or disenable all buttons (icons) on a toolbar..

Post your comment

Subject:
Message:
0/1000 characters