|
-
Jun 4th, 2000, 02:49 PM
#1
Thread Starter
Addicted Member
Does anyone know how I can change the fontcolor on a commandbutton ? I remember I had a piece of code for it but I seem to have lost that.
Regards,
Laurens
Using VB5 Enterprise edition SP3
VB6 Enterprise edition SP5
-
Jun 4th, 2000, 03:16 PM
#2
Frenzied Member
use a checkbox with style set to graphical and value = 0 in the click:
Private Sub Check1_Click()
Check1.Value = 0'uncheck it
End Sub
-
Jun 4th, 2000, 03:19 PM
#3
Thread Starter
Addicted Member
Mark,
are you sure your are replying to this question ?
Regards,
Laurens
Using VB5 Enterprise edition SP3
VB6 Enterprise edition SP5
-
Jun 4th, 2000, 03:25 PM
#4
Frenzied Member
YES!
Try it!
you can then set the font colour
-
Jun 4th, 2000, 03:41 PM
#5
Thread Starter
Addicted Member
Thanks Mark,
I was a bit puzzled by the checkbox, but I tried it and it works.
Regards,
Laurens
Using VB5 Enterprise edition SP3
VB6 Enterprise edition SP5
-
Jun 4th, 2000, 09:31 PM
#6
Of course, you can do it with a regular button, but it requires subclassing. But there is a better solution you can use. If you add Microsoft Forms 2.0 OCX then you would have a button there which allows you to change the forecolor.
-
Jun 5th, 2000, 01:18 AM
#7
Or you could create a graphic with the text you want, and set style to graphical and picture to this graphic.
-
Jun 5th, 2000, 01:54 AM
#8
Fanatic Member
How did you ever find that out Mark?
Chemically Formulated As:
Dr. Nitro
-
Jun 5th, 2000, 02:53 AM
#9
Or you can use Sheridan Threedee controls.
By the way. I also found out about the CheckBox thing before. I found that out when i was playing around with the properties of different controls.
-
Jun 5th, 2000, 02:20 PM
#10
Frenzied Member
Nitro
I read it on a well known VB forum (this one!)
I just tried searching for the original thread but I couldn't find it.
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
|
Click Here to Expand Forum to Full Width
|