Problem in accessing menustrip in VB.Net 2005

30 pts.
Tags:
.NET Framework
Interface design
VB.NET 2005
Hi everyone, I'm working with VB.Net 2005(.Net framework 2.0). I am having a problem in accessing the items in a menustrip of a form. Suppose there is an item in a menustrip named FILE. Under the FILE item there are 3 subitems- OPEN, SAVE and EXIT. Now, I wanna disable the 2nd subitem i.e. SAVE with its index value. In VB.Net 2002 it could be done by the following code: Me.Menu.MenuItems(0).MenuItems(1).Enabled=False The first 'MenuItems(0)' refers to the item- FILE. The latter one refers to the 2nd item of FILE (Array concept). But in VB.Net 2005 I can write the above code upto.... Me.MenuStrip1.MenuItems(0) After that I cannot access any subitem. Can anybody provide me the code snippet for that?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following