?
Solved

Changing the text color of the button

Posted on 2000-03-23
11
Medium Priority
?
167 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
Independent Software Vendors: 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 150 total points
ID: 2741160
Thanks very much, Rahul. I'm glad that I could help..
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

764 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