Results 1 to 3 of 3

Thread: General Menu Question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    USA
    Posts
    27

    Question

    I have a menu on my form and let's say the sub-menu is clicked it will display a title name. My question is how can I deleted that title name from that same option from the menu?

    As of now I just have

    mnuFileTitle
    lbltitle.caption ="Welcome"

    If that same menu function is clicked again, i want the Title to disappear.

  2. #2
    Guest
    Code:
    Private Sub mnuFileTitle_Click() 
    If lbltitle.caption <> "Welcome" Then
    lbl.caption = "Welcome"
    ElseIf lbltitle.caption ="Welcome" Then
    Exit Sub
    End If
    End Sub

  3. #3
    Lively Member
    Join Date
    Mar 2000
    Posts
    87

    Wink


    Private Sub mnuFile_Click()
    mnuFile.Checked = Not mnuFile.Checked
    If mnuFile.Checked Then
    Me.Caption = "Welcome"
    Else
    Me.Caption = ""
    End If
    End Sub


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