Results 1 to 24 of 24

Thread: [RESOLVED] How to make a button "Visibly Pressed" when I click a Picture

Hybrid View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2005
    Posts
    154

    Re: How to make a button "Visibly Pressed" when I click a Picture

    What is STATE ON and OFF?

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: How to make a button "Visibly Pressed" when I click a Picture

    Sorry about that. State ON is vbchecked.
    Put a checkbox on your form, and set its style to graphical.
    See this example.

    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Check1_Click()
    4.   If Check1.Value = vbChecked Then
    5.     Check1.BackColor = vbRed
    6.   Else
    7.     Check1.BackColor = vbBlue
    8.   End If
    9. End Sub

    The button will be grey when you start the app, unless you change the color beforehand, or in the properties.

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