?
Solved

Visual Basic

Posted on 2003-03-30
10
Medium Priority
?
189 Views
Last Modified: 2010-04-03
I am using VB6.0 The Option1.value=true to change the color of the text for a command button does not work.
 
Is there another way to change color of the text for a Command Button? Please help.
0
Comment
Question by:khushboo
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 34

Expert Comment

by:arbert
ID: 8236040
check out the .forecolor or .backcolor property.  the .value property only affects the shading--not the color.

Brett
0
 
LVL 6

Expert Comment

by:xSinbad
ID: 8236571
You will also need to set the style to Graphical.
0
 
LVL 34

Expert Comment

by:arbert
ID: 8236636
Graphical????  The color can be changed by simply changing the backcolor or forecolor properties.  What do you mean "graphical" xsinbad?

Brett
0
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.

 

Author Comment

by:khushboo
ID: 8238391
You can change the text color in the user interface by changing the style properties to graphical, but when you run the program the change of text color doesn't appear. If there is another way to change the text color in the command button, than please let me know.
0
 

Author Comment

by:khushboo
ID: 8239415
Albert,
             In the properties window, there is an option called style. Click on the down arrow on the right side of it, and change it to 1-Graphical.
0
 
LVL 6

Accepted Solution

by:
xSinbad earned 200 total points
ID: 8242302
Brett I believe you are talking about the Option Button but I believe that khushboo wants to change the font color on a Command Buttion using the Option Button.

khushboo
Check this out it seems to be what you are after.

http://vbwork.4mg.com/howto6.html#a8

Cheers
Marcus
0
 

Author Comment

by:khushboo
ID: 8242448
Thanks for your help guys. However, somehow how none of this options seem to work out for me. The PaintCaption option that Marcus wrote seems reasonable, but the Visual Basic verzion that I using doesn't seem to have that option. It gives me and run time error
0
 
LVL 6

Expert Comment

by:xSinbad
ID: 8243025
I cant seem to get it to work either and that is the only solution I have found for this problem as the font colors are controled by the system settings for the OS. Maybe someone can find a good work around.

Cheers
Marcus
0
 

Author Comment

by:khushboo
ID: 8247321
Thanks for your help Marcus. I really appreciate it.
0
 
LVL 32

Expert Comment

by:LucF
ID: 10304845
khushboo,
No comment has been added lately (313 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to xSinbad http:#8242302

I hope the mod following up is willing to move this Q to a more appropriate TA.

Please leave any comments here within 4 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

LucF
EE Cleanup Volunteer
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

569 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