protected virtual void InitializeCheckBoxImages()
{
// Don't mess with the image list in design mode
if (this.DesignMode)
return;
ImageList il = this.SmallImageList;
if (il == null) {
il = new ImageList();
il.ImageSize = new Size(16, 16);
il.ColorDepth = ColorDepth.Depth32Bit;
}
this.AddCheckStateBitmap(il, CHECKED_KEY, CheckBoxState.CheckedNormal);
this.AddCheckStateBitmap(il, UNCHECKED_KEY, CheckBoxState.UncheckedNormal);
this.AddCheckStateBitmap(il, INDETERMINATE_KEY, CheckBoxState.MixedNormal);
this.SmallImageList = il;
}