How to make visible = false to menu .. I have ran below code:

me.menuitem2.visible = false

and I met below error message:

an unhandled exception of type 'System.NullReferenceException' occured in test.exe

Additional information:

Object reference not set to an instance of an object

please help .. thanks

Regards
Winanjaya