Results 1 to 3 of 3

Thread: Using Checks in Menus(Resolved)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Posts
    152

    Wink Using Checks in Menus(Resolved)

    I've looked in the msdn's For an answer for this but It does'nt seem to work.......

    This is from the msdn

    Private Sub MyMenuItem_Click ()
    ' Turn check mark on menu item on and off.
    MyMenuItem.Checked = Not MyMenuItem.Checked
    End Sub

    It gives an error "Method or data member not found".
    With the word Checked being highlighted..

    Anyone with so insight that could send me off in the right direction?
    Last edited by PJMAXX; Mar 17th, 2002 at 01:04 AM.
    My software never has bugs. It just develops random features.

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    What menu items have u created, and what does the code u use look like?

    menu item = A

    VB Code:
    1. Private Sub A_Click()
    2.     A.Checked = Not A.Checked
    3. End Sub

    works just fine...
    -= a peet post =-

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Posts
    152
    Yes It works ,,,I was trying to use it two levels deep...
    But I guess it only works one level ....Is there a way to get it two
    or more levels deep?


    Like

    {File } 'level1
    {mode} 'Level2
    1 'Level3 "I want to use checks in this level"
    2
    3

    I love when I can answer my own Question....

    Name(Index # here).Checked = Not Name(Index #).Checked

    That was What I was after.......
    I just had to get the old brain blood flowing...lol
    Last edited by PJMAXX; Mar 16th, 2002 at 11:17 PM.
    My software never has bugs. It just develops random features.

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