Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Oct 2001
    Location
    San Bernardino, California, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Command buttons... (XP)

    When I create a command button and select one of the default graphics, is there a way to also include text on the button? I have tried adding a label and placing it over the command button and it has the appearance I want but prevents being able to click on the button unless I click on the button where the label does not cover it.

    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Command buttons... (XP)

    A command button displays either a picture or a caption, not both. You could create a custom picture that includes a caption, and set that as picture for the command button. Alternatively, you can create an On Click event handler for the label you put over the command button:

    Private Sub MyLabel_Click
    MyCommandButton_Click
    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
  •