Results 1 to 6 of 6

Thread: VB - Coloured Buttons

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    VB - Coloured Buttons

    Coloured Buttons
    Attached Files Attached Files

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    just to note that the module in this entry was taken from vbthunder.com
    http://www.vbthunder.com/default.asp?srcget=1
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    That's right . Thanks

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Decent, but what's wrong with using a checkbox? Set the Style to Graphical, and add this to the code...
    VB Code:
    1. Private Sub Check1_Click()
    2.     Check1.Value = vbUnchecked
    3. End Sub

    And you have the BackColor and ForeColor properties available by default. Among the few things you lose are the Default and Cancel properties, though.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Sounds unusual !! We don't used to have Checkbox as Commandbutton but it does the job perfectly !

  6. #6
    Member
    Join Date
    May 2001
    Location
    Baltimore
    Posts
    61

    check ummm

    Tried that once but I didnt like the final result. The code in the checkboxs ( i made into buttons) when tabbed on to the code would automatically execute without clicking having to click the checkbox. The checkbox is easy maybe for one or two buttons but if you need more than that I would highly suggest Pirate and Buggy's approach
    Striver2000

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