Disable toolstripbutton in c# windows application
Please support our ASP.NET advertiser: DiscountASP.NET – 3 Months Free on ASP.NET 3.5/2.0 Web Hosting
![]() |
•
•
Posts: 4
Reputation:
Solved Threads: 0
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.
Looking forward for help!
Rajesh
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)
((Main)(this.MdiParent)).administrationToolStripMenuItem.Enabled = false; ((Main)(this.MdiParent)).loginToolStripMenuItem.Enabled = false;
Looking forward for help!
Rajesh
Last edited by peter_budo : Dec 4th, 2008 at 6:17 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: how to call a function from .aspx.cs file to .aspx file
- Next Thread: Problem with DataGrid
•
•
•
•
Views: 579 | Replies: 0 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode