| 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
|
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 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