943,875 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1490
  • ASP.NET RSS
Dec 4th, 2008
0

Disable toolstripbutton in c# windows application

Expand Post »
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.
asp.net Syntax (Toggle Plain Text)
  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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rajeshswain is offline Offline
5 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Runtime Error
Next Thread in ASP.NET Forum Timeline: Problem with DataGrid





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC