| | |
Disable toolstripbutton in c# windows application
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Feb 2008
Posts: 5
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 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.
![]() |
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
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer c# cac checkbox class commonfunctions compatible content contenttype countryselector courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formatdecimal formview gridview gudi iframe iis javascript listbox menu microsoft mouse mssql multistepregistration nameisnotdeclared news opera panelmasterpagebuttoncontrols problem redirect registration relationaldatabases reportemail schoolproject security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webdevelopment webprogramming webservice youareanotmemberofthedebuggerusers





