kocakden
March 18th, 2008, 04:32 PM
Hi all
I have a form application named miko and a checkbox named checkbox1 in it. When i write
if(((CheckBox^)(miko::Form1::FindForm()->Controls["checkbox1"]))->Checked)
do something;
else
do anything;
it builts with no error but when i run the program it gives me "object reference not to set of an instance of an object" error. Can anyone help about it?
I have a form application named miko and a checkbox named checkbox1 in it. When i write
if(((CheckBox^)(miko::Form1::FindForm()->Controls["checkbox1"]))->Checked)
do something;
else
do anything;
it builts with no error but when i run the program it gives me "object reference not to set of an instance of an object" error. Can anyone help about it?