Solved

Changing the text color of the button

Posted on 2000-03-23
11
164 Views
Last Modified: 2010-05-02
Hi

I want to know if there are any api or any other method by which u can change the text/foreground color of the button.

Thanks
0
Comment
Question by:agarwal_rahul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +3
11 Comments
 
LVL 32

Expert Comment

by:Erick37
ID: 2651832
Add a reference to:

Project->Components->Microsoft Forms 2.0 Object Library

The command button in that library has a ForeColor property
0
 
LVL 28

Expert Comment

by:Ark
ID: 2651988
Hi
You can draw your own button using PictureBox. If you need sample code, I'll post it.
Cheers
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:johnsand
ID: 2652188
{buttonname}.forecolor = vbRed
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2652519
VB buttons don't have a forecolor.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2652524
"Microsoft Forms 2.0 Object Library"
Please avoid that like the plague. It's vile. You can't even tab backwards off those controls. Evil yokes indeed. Yuck...
0
 
LVL 9

Expert Comment

by:Ruchi
ID: 2668278
Rahul, any news here?
0
 
LVL 9

Expert Comment

by:Ruchi
ID: 2738072
Rahul, are you still there? any news here?
0
 
LVL 4

Author Comment

by:agarwal_rahul
ID: 2740964
That is not possible

Ruch can u post ur comment as answer and claim the points

Thanks
0
 
LVL 4

Author Comment

by:agarwal_rahul
ID: 2740966
My first comment was for johnsand....


Thanks
0
 
LVL 9

Accepted Solution

by:
Ruchi earned 50 total points
ID: 2741160
Thanks very much, Rahul. I'm glad that I could help..
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question