Hello All i have a problem i want So many Control on my Window Form (LAbel,textbox) how can i disable all Control When My form Load TO Caught One By one And do Visibilty False is Very irretating for me and After That i want to Pass The Control Inside the Function and Set Its Width And Height HOw Can i Achive it.
i m using Function Inside below But its Not able to Set the HEight And Weight my All LAbel And Textboxe takes Default Values
thanks in advance
shashank tyagi
public void Setlabel(Control ctl2)
{
Control lbl = (Control)ctl2;
lbl.Visible = Visible;
lbl.Size=new Size(123,123);
lbl.Height = 40;
//lbl.PreferredSize = new Size(100, 100);
}