BigCheese Posted October 26, 2004 Share Posted October 26, 2004 Hi, I am new to programming. I am using VB.Net 2005 express edition beta, and I need to know the code to disable/gray out buttons on a toolbar. Thanks Link to comment Share on other sites More sharing options...
0 bangbang023 Veteran Posted October 26, 2004 Veteran Share Posted October 26, 2004 toolbarName.Buttons(index of button).Enabled = False Link to comment Share on other sites More sharing options...
0 BigCheese Posted October 26, 2004 Author Share Posted October 26, 2004 (edited) Thanks for the speedy reply but it says: 'Buttons' is not a member of 'System.Windows.Forms.ToolStrip'. Edited October 27, 2004 by BigCheese Link to comment Share on other sites More sharing options...
0 BigCheese Posted October 27, 2004 Author Share Posted October 27, 2004 It doesn't matter, I fixed ti, it shoudl be: toolbarName.Items.Item(index of button).Enabled = False Link to comment Share on other sites More sharing options...
0 bangbang023 Veteran Posted October 27, 2004 Veteran Share Posted October 27, 2004 my code was from 2003. I guess they changed it a bit. Link to comment Share on other sites More sharing options...
Question
BigCheese
Hi,
I am new to programming.
I am using VB.Net 2005 express edition beta, and I need to know the code to disable/gray out buttons on a toolbar.
Thanks
Link to comment
Share on other sites
4 answers to this question
Recommended Posts