Click to See Complete Forum and Search --> : Talk about a newbie question..
ShadowCrawler
Jan 20th, 2000, 05:04 AM
I don't believe I'm asking this (been doing vb for over a year now), but is there a way to change the forecolor/fontcolor on a command button? I seem to remember being able to do this a while aog, but I can't find it now?
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)
ravcam
Jan 20th, 2000, 05:10 AM
Could it be object.forecolor = ???????
the ? marks stand for those long alpha-numeric combinations used to represent colors.
ShadowCrawler
Jan 20th, 2000, 05:11 AM
Umm...not to be rude...but if it was that easy I wouldn't be posting :)
(Draw a CommandButton and see..)
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)
Gimpster
Jan 20th, 2000, 05:15 AM
I don't think you can change the fontcolor of command buttons, not unless you use API codes, because I believe it is set by Windows. But I could be wrong, I've only been doing this for about 6 months. :)
------------------
Ryan
[This message has been edited by Gimpster (edited 01-20-2000).]
ShadowCrawler
Jan 20th, 2000, 05:18 AM
I remember being able to do it long ago...maybe even when I was using VB5. I have no idea, was hoping someone would know. (Aaron?)
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)
LG
Jan 20th, 2000, 05:54 AM
Hi, there.
Two ways to do it:
1. Use Option button and change Style property to Graphical.
2. Add Microsoft Forms 2.0 Object Library(it's in Components) and use Command button from there.
Larisa
Al Smith
Jan 20th, 2000, 06:09 AM
Hi,
Aaron just answered the same question today:
http://www.vb-world.net/ubb/Forum1/HTML/013817.html
Al.
------------------
A computer is a tool, not a toy.
<A HREF="mailto:asmith3914@aol.com
asmith@spxateg.com">asmith3914@aol.com
asmith@spxateg.com</A>
Tonio169
Jan 20th, 2000, 11:42 AM
change its style property first to vbGraphical then change the forecolor/backcolor properties.
ShadowCrawler
Jan 20th, 2000, 11:57 AM
I really wish half of you would check your answer before giving it...CommandButton's DO NOT HAVE a .ForeColor property.
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)
ShadowCrawler
Jan 21st, 2000, 03:06 AM
I realize the idea with the checkbox now, I was hoping to do it with a normal commandbutton because I remember doing it in a program I made long ago. Oh well. Anyway, a bunch of people were saying 'change it's .ForeColor', assuming I was stupid enough not to check that :P
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)
LG
Jan 21st, 2000, 09:40 AM
Hi.
As I said before, add from components Microsoft Forms 2.0 Object Library. It will add new command button,that has forecolor property.
Larisa
ShadowCrawler
Jan 21st, 2000, 10:37 AM
Thanks Larisa, I wasn't targeting you when I said that. My mian thing is avoiding more ActiveX controls, because I'm already using a bunch and it makes distribution and support really tough.
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)
Gimpster
Jan 21st, 2000, 11:15 AM
ShadowCrawler, he's not talking about the properties of a command button, he's talking about the properties of a check box, whose style is set to 1-Graphical. It's just how Aaron Young explained it in his other post.
------------------
Ryan
[This message has been edited by Gimpster (edited 01-21-2000).]
JeffSM
Jan 21st, 2000, 09:29 PM
My suggestion is not use Fm20.dll, this dll is incompatible with Visual Basic and causes errors! I say that 'cause I was using it and I got several messages errors then I cut out and became works fine.
I suggest you to visit:
www.vbxtras.com (http://www.vbxtras.com)
Jefferson
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.