Results 1 to 2 of 2

Thread: help with menu's

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Posts
    204
    can you make it where when someone puchs a button it adds what they type in a text box up in a menu ... can some one help me and then save it so when they load it next time it is still there . thanks like a favorites on your ie or netscape
    WHat would we do with out Microsoft.
    A lot more.

  2. #2
    Guest
    Make a menu called mnuTest with a SubMenu called mnuSub. Make sure that that Index property for it is set to 0.

    Now insert this code into a CommandButton on the Form. Also, make sure that there is a TextBox on the Form as well.

    Code:
    Private Sub Command1_Click()
    
        Load mnuSub(mnuSub.Count)   ' Loads another menu
        MyInt = mnuSub.Count - 1    ' Get the Index for the menu
        mnuSub(MyInt).Caption = Text1.Text ' Set the caption to whatever is in the TextBox.
    
    End Sub


    [Edited by Megatron on 06-18-2000 at 01:55 PM]

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