|
-
August 5th, 2003, 11:24 AM
#1
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.
-
August 5th, 2003, 02:19 PM
#2
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...

-
August 5th, 2003, 04:26 PM
#3
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.
-
August 5th, 2003, 04:42 PM
#4
and i don't think you can do that!
yeah, I\'m gonna need that by friday...

-
August 5th, 2003, 04:46 PM
#5
O.K,
So were agreed. Its impossible. I even tried hwnd ing etc
-
December 10th, 2003, 04:36 PM
#6
Junior Member
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.
-
December 10th, 2003, 04:38 PM
#7
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
-
Forum Rules
|
|