VB Options Box Colours
Results 1 to 7 of 7

Thread: VB Options Box Colours

  1. #1
    Senior Member
    Join Date
    Jan 2003
    Posts
    1,499

    VB Options Box Colours

    You know the little circular options boxes in VB.

    Can I make the selected one e.g the circle with the black dot in it appear have a red dot in it instead ?

    It sounds simple but its not.

  2. #2
    Senior Member tampabay420's Avatar
    Join Date
    Aug 2002
    Posts
    953
    Iím not sure you can do that?
    You could either write your own custom control (not hard)

    Or, try using some OCX... Iím sure there are all kinds of cool/neat looking controls...

    I don't like to use those, as they take up resources unnecessarily

    Code:
    If Picture1.BackColor = vbRed Then
        Picture1.BackColor = vbBlack
    Else
        Picture1.BackColor = vbRed
    End If
    this makes a nice checkbox... using the PictureBox control...

    Code:
    If Picture1.BackColor = vbRed Then
        Picture1.BackColor = vbBlack
    Else
        Picture1.BackColor = vbRed
        Picture2.BackColor = vbBlack
    End If
    that will work if you want multiple option type setup, once again using picture box control...
    yeah, I\'m gonna need that by friday...

  3. #3
    Senior Member
    Join Date
    Jan 2003
    Posts
    1,499
    It was the little round option box tampa. I just wanted to make the actual active one (The one with the black dot) have a red dot instead.

  4. #4
    Senior Member tampabay420's Avatar
    Join Date
    Aug 2002
    Posts
    953
    and i don't think you can do that!
    yeah, I\'m gonna need that by friday...

  5. #5
    Senior Member
    Join Date
    Jan 2003
    Posts
    1,499
    O.K,

    So were agreed. Its impossible. I even tried hwnd ing etc

  6. #6
    Junior Member
    Join Date
    Dec 2003
    Posts
    14
    If you have the MSDN Library then search for "option buttons" and click on the topic "enhancing appearance"

    If you don't, then play around with the following:

    Visually Enhancing the Option Button Control
    The look of the option button control may be enhanced by altering the setting of the Style property and then using the Picture, DownPicture and DisabledPicture properties.

  7. #7
    Senior Member
    Join Date
    Jan 2003
    Posts
    1,499
    O.K,

    So were agreed. Its impossible. I even tried hwnd ing etc
    Read the rest of the forum before posting at the end.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •