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 Mike Lewis 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 the backcolor of Image control?

Status
Not open for further replies.

diem

Programmer
Jul 25, 2001
28
0
0
US
Hi,

Does anyone know how to change the background color of the image control? For example, I add a "test.ico" into the picture property of the image control. But if the icon doesn't fill the whole image control and I want to change the background of the image to some other color, is this possible? I couldn't find the backcolor property for the image control. Any idea would help a lot. Thank you

 
diem

Place a borderless .Shape control behind the .Image control, setting the foreground colour of the .Shape control to whatever.

Set .BackStyle = 0 in the .Image control.

Chris :)
 
Hi Chris

Thank you very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top