Click here to Skip to main content
16,017,193 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
MY class Code:

C#
public void PrepareAndShow(Form aForm)
        {
            aForm.BackColor = Color.Blue;
         
   }

And this is Window form code :

C#
Form S= new Form4();

           form_colr f = new form_colr();
           f.PrepareAndShow(S);




But it doesnt work.
All possible soutions are welcomed.
Posted
Updated 19-Apr-14 5:43am
v2
Comments
[no name] 19-Apr-14 7:30am    
You would actually have to show a form before you would see it change color.
Member 10285877 21-Apr-14 0:52am    
ya sir before see change it color and change only that form that form i cal a function
Member 10285877 22-Apr-14 1:01am    
sir please give me ans

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