[RESOLVED] which method we use to enable disable buttons of toolbar in c sharp
we use this method in vb 6.0
Toolbar1.Buttons(1).Enabled = true
which method we use to enable disable button in c sharp
Re: which method we use to enable disable buttons of toolbar in c sharp
use the [ ] instead of ( ) , remeber that in .NET the toolbar's index's begin at 0 not 1 , so to disable the second button ...
VB Code:
toolBar1.Buttons[1].Enabled = [COLOR=Blue]false[/COLOR];
the first button would be ...
VB Code:
toolBar1.Buttons[0].Enabled = [COLOR=Blue]false[/COLOR];