No like this you will not checkstate. You will get it always what you have set for it. because when you are creating instance of frmS form it will invoke constructor of that class which will initialize all control to default state as a new controls on that form. To get state of checkbox on frmSetting form create instance of frmSetting and then send the state of checkbox to another form in a variable. like In frmSettings anotherform obj=new anotherform(); obj.checkboxstate=CheckBoxState; In Another form internal bool chekboxstate; this checkboxstate will give you the state you set on frmSettings.
Suthish NairPosted Jan 30, 2011, 1:21 PM
So other members can easily find the answers.
FroglegPosted Jan 28, 2011, 2:17 AM
Any way here's a sample of two forms
Krishna GaradPosted Jan 27, 2011, 11:24 PM
In frmSettings
anotherform obj=new anotherform();
obj.checkboxstate=CheckBoxState;
In Another form
internal bool chekboxstate;
this checkboxstate will give you the state you set on frmSettings.