hello everyone,
i have some problems accessing sub-items of a Menustrip.
i made a MenuStrip with 2 Items (File and Option), under the item "Option" i made another 2 items (Print and Save). i want to disable the option "Save" in at runtime like this :
MenuStrip1.Items("Save").Enabled = False.
but i get the error : Object reference not set to an instance of an object.
i'm sure that the sub-item "Save" exists but i don't know why i get this error.
Can anyone help ? please !
any idea will be apreciated.
thank you in advance
i have some problems accessing sub-items of a Menustrip.
i made a MenuStrip with 2 Items (File and Option), under the item "Option" i made another 2 items (Print and Save). i want to disable the option "Save" in at runtime like this :
MenuStrip1.Items("Save").Enabled = False.
but i get the error : Object reference not set to an instance of an object.
i'm sure that the sub-item "Save" exists but i don't know why i get this error.
Can anyone help ? please !
any idea will be apreciated.
thank you in advance