DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Disable toolstripbutton in c# windows application (http://www.daniweb.com/forums/thread160687.html)

rajeshswain Dec 4th, 2008 5:50 am
Disable toolstripbutton in c# windows application
 
Hello,

I have a main page to which i have added a toolstrip along with menustrip. While running my application login page appears. I need, these two i.e. menustrip and toolstrip to remain disabled until successful login.

However, i managed to disable the menustrip, but I am unable to disable the toolstrip items. My toolstrip items are toolstripbutton1, toolstripbutton2 and toolstripbutton3.

To disable menustrip I have used.
((Main)(this.MdiParent)).administrationToolStripMenuItem.Enabled = false;
((Main)(this.MdiParent)).loginToolStripMenuItem.Enabled = false;

Looking forward for help!
Rajesh


All times are GMT -4. The time now is 5:43 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC