private void Form1_Load(object sender, System.EventArgs e)
{
control.CheckState = CheckState.Unchecked;
control.PictureAlignH=FarPoint.Win.HorizontalAlignment.Center;
control.PictureAlignV = FarPoint.Win.VerticalAlignment.Center;
control.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("d:\\mail16a.ico", true), FarPoint.Win.RenderStyle.Normal);
}
private void control_CheckChanged(object sender, System.EventArgs e)
{
if (control.CheckState == CheckState.Checked)
{
control.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("d:\\mail16a.ico", true), FarPoint.Win.RenderStyle.Normal);
control.PictureAlignH = FarPoint.Win.HorizontalAlignment.Center;
control.PictureAlignV = FarPoint.Win.VerticalAlignment.Center;
control.TextTrue = "Mail's been checked";
}
else if (control.CheckState == CheckState.Unchecked)
{
control.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("d:\\mail16b.ico", true), FarPoint.Win.RenderStyle.Normal);
control.PictureAlignH = FarPoint.Win.HorizontalAlignment.Center;
control.PictureAlignV = FarPoint.Win.VerticalAlignment.Center;
control.TextFalse = "Mail needs to be checked";
}
else
{
control.CheckState = CheckState.Indeterminate;
control.TextIndeterminate = "No mail today";
}
}