Click here to Skip to main content
16,004,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a huge question. Recently I've been working on a project of mine just for fun.

I ran into a problem where, well basically, let me cut to the chase.

I have two forms. FORM 1, and FORM 2.

Form 1 has a couple panels, and one of those panels is called formPanel1, which is in form 1. Now, I want to be able to change the backcolor of that panel (and this panel is in form 1) through a button in form 2. The problem is, it doesn't exist in the code in form2, it only exist's in form 1. I want to be able to change the color of that certain panel in form 1 through form 2.

Please help, I really want to finish, it would mean LOTS.

[enter image description here][1]

[1]: https://i.stack.imgur.com/u7jpS.png - - This is my project so far.

[1]: https://i.stack.imgur.com/atkgF.png - - This is the panel I want to change color of.

[1]: https://i.stack.imgur.com/dpvb3.png - - This is the button I want to click in order to change the color of that panel in form 1 (this button is in form 2)

What I have tried:

I have tried many things. That does include other sites. They don't make sense.

They either use two different things, and the code they give doesn't work for my code
Posted
Updated 27-Jan-18 16:46pm

1 solution

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