473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Changing Caption Color

Ali Rizwan
925 512MB
Hi everybody
I want to change color of button's caption in vb6 i tried but couldnt succeed.
How can i change the color of a commandbutton's caption
Thanx
Aug 31 '07 #1
5 3832
Hi everybody
I want to change color of button's caption in vb6 i tried but couldnt succeed.
How can i change the color of a commandbutton's caption
Thanx
Not supported.

A possible solution is to set a Checkbox control to Graphical which makes it look like a button. Checkbox control has a forecolor property that you can change.
Aug 31 '07 #2
sgrec7
59
Hi everybody
I want to change color of button's caption in vb6 i tried but couldnt succeed.
How can i change the color of a commandbutton's caption
Thanx
Ok now let me get this straight...

i use VB6 all the time at school (BTW I'm not at school right now) but i thing if its the colour of the text that you want to change

eg. "command 1" needs to be green instead of black

then go to the properties of the command button and change the forecolour to green.

if its the back colour you want to change then you should change the style (i think) from "1 Standard" to "2 Graphical" (or something like that {i cant remember exactly but i'll check next time I'm at school}) and then after that change the back colour of the command button to the desired colour.

i hope that helps.

if that doesn't work then i'll get the correct working form school on Monday (BTW i'm in Oz so today is Saturday for me)
Sep 1 '07 #3
debasisdas
8,127 Expert 4TB
That property is not supported in VB 6.0.

You can do that if using .NET

orlese do as already suggested by VBPhilly.
Sep 1 '07 #4
sgrec7
59
That property is not supported in VB 6.0.

You can do that if using .NET

orlese do as already suggested by VBPhilly.
wait were u saying this about my post??? because thats how i always do it in VB 6 thats what the teacher showed us ages ago!!

(But i must admit it leaves a grey border around the command button)
Sep 2 '07 #5
sgrec7
59
That property is not supported in VB 6.0.

You can do that if using .NET

orlese do as already suggested by VBPhilly.
shit!!! sorry, you were right i thort he ment backcolor :(
Sep 2 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Pavan Arise | last post by:
Hi all.. This may seem simple..but I am stuck here! I have a frame in which I have a label. I was trying to change the caption of that label via code (I mean at runtime & not design time). But...
2
by: Regnab | last post by:
I've searched through the posting and found what should be the solution to changing the value of a label.... Private Sub Report_Open(Cancel As Integer) Me.lblTest.Caption = "I love Access" End...
1
by: S. van Beek | last post by:
Dear reader, I can change the caption content of a field in a Form with the following VBA code: Rst!<FieldName>.Caption = "<NewCaptionContent>" But if I do the same in a Table the...
32
by: deko | last post by:
I have a popup form with a textbox that is bound to a memo field. I've been warned about memo fields so I'm wondering if I should use this code. Is there any risk with changing the form's...
2
by: Casey Miller | last post by:
I have a site, http://www.onemorewebsite.com, that has a menu on the left side and a picture on the right side with a middle div for content in the middle. When I mouse over the menu, the picture...
1
by: mplus_2000 | last post by:
I have recently inherited a database. The switchboard (and other forms) displays the name of the database on it (top, center). Currently the name that appears is Reviews. There are plans to roll...
0
by: el_espasmo | last post by:
Yes... I know the question might be stupid but... I still want to try because I haven't been able to solve this. I have been trying to change some stuff in MySpace, but not in my profile, in...
3
by: chris1606 | last post by:
I have an image gallery that pops up an enlarged version of a picture when someone clicks on it. That bit works, but it should also load the picture's caption into the floating layer. Instead the...
1
by: sarangjavkhedkar | last post by:
changing the color of command button caption
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.