Hello
I want to change a labels back color on form1 via a button on form 2, both of which are open.
The code i tried for this is:
But this dosent work, so i assumed its not passing it to the other form correctly so i tried a class on form 1
Calling it on form2 by
But this dosent change the color either, ive put a message box in the class to popup which it does so it is running just the color not changing. The only way it will change color is by a click/double click on another item on form1
What am i missing?
I want to change a labels back color on form1 via a button on form 2, both of which are open.
The code i tried for this is:
Code:
Form1.lbl11.BackColor = Color.Green
Code:
Public Sub Changegreen()
lbl11.BackColor = Color.Green
End Sub
Code:
Call form1.Changegreen()
What am i missing?