Hai Friends,
i m creating one application in that i wanna check box with
details (I.e)if the check box is clicked then ll show details of the
content and one more thnk if i m not choosen the check all details ll
be hidden and ll through alert message choose the check box like that?
Thanks & Regards
A.Rama Krishnan
Loading
Rocky RockyPosted Apr 22, 2013, 3:20 AM
i ve a check box
fruits,
vegetables.
if i m choose fruits then ll display apple,orange,like the same also vegetables.
if i never choosed chek box ll through an error how to it???
Thanks & Regards
A.Rama Krishnan
Satyapriya NayakPosted Apr 22, 2013, 1:40 AM
Pankaj RawatPosted Apr 22, 2013, 1:26 AM
/* Place your Details Here */
Vishal GilbilePosted Apr 22, 2013, 1:19 AM
You could simply place all your controls inside a panel whose visibility will be by default set to false. and then you can fire onCheckChanged event of your checkboxes within that you'll check whether the checkbox is checked or not. If it is checked then set the panel visibility to true or else display a message box.
For instance.
bool checked=CheckBox1.Checked;
if(checked)
{
Panel1.Visible=true;
}
else
{
MessageBox.Show("Kindly Check the checkbox");
}
Hope it helps you.
Iam AjayPosted Apr 22, 2013, 1:19 AM
make the datagrid(in which you want to display the data or contents) to be collapsed during loadevent and use a condition checkbox.ischecked =true then make the datagrid to be visible
load event is the mainfunction when your formgets loaded if its a windws form application