Click here to Skip to main content
15,851,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have a picture box that the back color of this is green. when an event occurs, its color should be changed to red. but how?
Posted
Updated 2-Nov-13 20:23pm
v2

1 solution

Hi this should work, So what you want to do is put this in the event
C#
pictureBox1.BackColor = Color.Red;
 
Share this answer
 
Comments
mohsenvasefi 2-Nov-13 6:33am    
thank you
IAmABadCoder 2-Nov-13 18:43pm    
You're welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900