Tuesday, July 28, 2009

How to change colour of a caption in Visual Basic 6?

Hey there wonder if you could help me, I'm not sure how to change the colour of some text in my Visual Basic .





This is what I have so far:


lblStatus.Caption = "In Use"





I then want it to change colour, how do I do this?


Thanks

How to change colour of a caption in Visual Basic 6?
ya it's the forecolor property...





in code it would be...





lblStatus.ForeColor = vb(A color of your choice)





you can also click the label, open the property window, click forecolor and select a color of your choice under the palette.
Reply:You will find the answer here





http://www.freetutes.com/VisualBasic
Reply:Use Forecolor property of the label


No comments:

Post a Comment