Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So right now, I have ucModule5, which is the name of my user form. That page is the settings page. In there, I have buttons that when you click the buttons change color. Now I already got all the buttons to change to color, but I've ran into a problem. I don't know how to code it so when I press the button, the panels inside the form change color with the button.

What I have tried:

I have tried everything I know. I've gotten the buttons to work, but those are in the user controls. But since the panels are part of the form i dont know what to do.
Posted
Updated 27-Aug-17 20:07pm
Comments
Graeme_Grant 27-Aug-17 23:21pm    
Have you tried everything? We can't see why you have tried from here...

Click on "Improve question" widget and post your current version and explain how it currently works and why it does not work, what errors that you are seeing.

Does the panel have a background property? have you tried setting it? If no background property, have you looked for a control that does?
Thomas Nielsen - getCore 28-Aug-17 3:08am    
You have to include your code for anybody to help you inhere :)

1 solution

Are u looking for this?
panel1.BackColor = Color.Red;
 
Share this answer
 

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