rajeshswain 0 Newbie Poster

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