Disable toolstripbutton in c# windows application

Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Feb 2008
Posts: 5
Reputation: rajeshswain is an unknown quantity at this point 
Solved Threads: 0
rajeshswain rajeshswain is offline Offline
Newbie Poster

Disable toolstripbutton in c# windows application

 
0
  #1
Dec 4th, 2008
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.
  1. ((Main)(this.MdiParent)).administrationToolStripMenuItem.Enabled = false;
  2. ((Main)(this.MdiParent)).loginToolStripMenuItem.Enabled = false;

Looking forward for help!
Rajesh
Last edited by peter_budo; Dec 4th, 2008 at 7:17 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC