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?
Software/Hardware used:
ASKED:
December 20, 2007 4:08 PM
UPDATED:
December 20, 2007 4:19 PM