we use this method in vb 6.0 Toolbar1.Buttons(1).Enabled = true which method we use to enable disable button in c sharp
Last edited by Waseemalisyed; Apr 29th, 2005 at 12:29 AM.
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];
toolBar1.Buttons[1].Enabled = [COLOR=Blue]false[/COLOR];
toolBar1.Buttons[0].Enabled = [COLOR=Blue]false[/COLOR];
~ if a post is resolved, please mark it as [Resolved] protected string get_Signature(){return Censored;} [vbcode][php] please use code tags when posting any code [/php][/vbcode]
Forum Rules