Hi
I have some code that create a few components on the click of a button. Something like this.
CheckBox chk = new CheckBox();
chk.Top = 50;
chk.Left = 50;
chk.Text = "Check Box Test";
chk.Name = "chkTest"
this.Controls.Add(chk);
So how do I use this component. For example I tried this but got and error saying the component didn't exist. I just want to get their values.
if(chkTest.Checked)
{
//Do this
}
Please help.
Thanks in adv.