Results 1 to 3 of 3

Thread: [RESOLVED] Remove item from menu and add code to Dynamic menu items

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Resolved [RESOLVED] Remove item from menu and add code to Dynamic menu items

    Hi.
    I build my menu dynamically from a recordset.
    Code:
    While Not listTypes.EOF               
        Load mnufiles(mnufiles.UBound + 1)
        With mnufiles(mnufiles.UBound)
            .Caption = listTypes.Fields(1) 
            .Enabled = True
            .Visible = True
            .Checked = True
        End With
        listTypes.MoveNext
    Wend
    What happens is that i've got this menu, by default with one item (the first).
    I wan't to remove it because it doesn't matter anymore after loading fields from DB.
    How can I do this?

    Another question:
    How do I associate code to the dynamically generated menu items?
    Thanks.
    Last edited by RS_Arm; Apr 17th, 2007 at 04:07 AM.

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