Results 1 to 3 of 3

Thread: set visible property to menuitem

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    784

    set visible property to menuitem

    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

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I've just tested something similar and works good . Where did you call this code from ?

  3. #3
    Addicted Member
    Join Date
    Nov 2003
    Location
    India
    Posts
    227
    I think you might placed your coding in the 'New' Constructor event. Try to make it after Initializing the controls or after the constructor is created.
    See you,
    -Jai
    [Friends Never Say Good Bye]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width