Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change BackColor property? 1

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
571
US
Colleagues,
In the "ol' good days", to change a back color of an object (say, a command button, text box, or even a form), all you needed to do was to assign RGB() value to the object.BackColor property.
But now, when I tried cmdMyButton.BackColor = RGB(0,156,0) I got the follwing error msg:

2024-04-11_BackColor_Wont_Take_RGB_lop6uf.jpg


Search in MS Help didn't brought any workable responses...
All I could discern is that the controls now accept only Color structure (? or I'm mistaken?) that I couldn't find comprehensive explanations for...

Hence the Q. in the Subject line.

AHWBGA!

Regards,

Ilya
 
Thank you!
The issue's resolved.
Case's being closed.

:)

Regards,

Ilya
 
Any Star for strongm for a [blue]Great Post![/blue] ?

This is just my opinion, but I see it way too often: people change back colors of controls and they end up with way too many of them with each of different color. The screen looks like someone ate a box of Crayons and then, well… all of that ended up on the screen.
[rainbow]

---- Andy

"Hmm...they have the internet on computers now"--Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top