Say chActive is the checkBox ,
private string Active
{
get
{
return chkActive.Checked ? "Y" : "N";
}
set
{
chkActive.Checked = (string.Compare(value, "Y", true) == 0 ? true : false);
}
}
Thus a check box property has been written
No comments:
Post a Comment