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 access and disable the 2nd subitem i.e. SAVE with its index value. In VB.Net 2002 it could be done by the following code:
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....
After that I cannot access any subitem. Can anybody provide me the code snippet for that?