Computing.Net > Forums > Programming > VB6 Command Button

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

VB6 Command Button

Reply to Message Icon

Original Message
Name: Global
Date: June 6, 2003 at 03:13:42 Pacific
Subject: VB6 Command Button
OS: Win 2000
CPU/Ram: 1800
Comment:

Most likely a question previously asked but is there an 'easy' way to change the text/forecolor colour for a command button in VB6?

I have come across a few 3rd party OCX's that have this capability but I would rather use a standard. If not available then is can anyone recommend a decent new command/button OCX?

Any help is appreciated,

Many Thanks
Global


Report Offensive Message For Removal


Response Number 1
Name: alexneethling
Date: June 6, 2003 at 06:27:30 Pacific
Reply: (edit)

Yez. You muz pusha buton hard till it blue. How, Ish?


Report Offensive Follow Up For Removal

Response Number 2
Name: Global
Date: June 9, 2003 at 01:40:24 Pacific
Reply: (edit)

Found the code to do it and yes, the colour changes although you cannot change font properties, although it has had limited testing. Any further ideas anyone?

If anyone would like the code then E-Mail me and I'll send a file or something.

Thanks,
Global


Report Offensive Follow Up For Removal

Response Number 3
Name: Chi Happens
Date: June 22, 2003 at 06:40:45 Pacific
Reply: (edit)

it is easy if you take a few seconds to examine a command property. (look in the little box that contains all the properties of the command button...it is usually under the project explorer on the right hand side of the IDE)

or programmatically do it OTF (on the fly)
Command1.Style = 1 ' Graphical
Command1.BackColor = vbBlue
Command1.Font.Name = "verdana"

like that.

Chi Happens


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software