What is the best way to accomplish a transparent background?
You should just be able to set the Appearance.BackColor to Color.Transparent.
-Matt
Something else I would like to do is set the background color within the box itself (not the overall background around the box which I want transparent no matter what) to the same color as the textboxes are when they have focus when focus is on the checkbox control. That way, when the user tabs through controls they can tell when they are on the checkbox just like with the other controls.
What happened when you set the color to transparent? The way that .NET transparency works is that a control will ask the parent to draw into the transparent region of the control, so if the control isn't a child of the background area that you want to see, it won't pick up that background.
As for changing the color of the checkbox itself, there was a new feature added in 8.2 for controlling the glyph associated with the checkbox that you should look into.
Thanks to all who looked at this. I apologize for the inconvenience. I found the problem. Code in our baseform was overriding the transparency setting.
It is working now .
Sorry, I posted the reply in the wrong message earlier:
We have created a checkbox class that is based on the UltraCheckEditor:
And it seems that something in our class is preventing or overriding the transparency setting because if I drop a pure UltraCheckEditor on the form, it does indeed show as transparent. So now i have to figure out what is overriding the UltraCheckEditor's methods that control the color and style...
All you should have to do is set the Appearance.BackColor, as was mentioned previously. This works correctly for me, so if the UltraCheckEditor is not correctly picking up the background of its parent, you should submit this to Developer Support.
Correction:
I do not know what is causing your issue with the transparency; you should probably submit a small sample to Developer Support so that they can take a look at it. I know that there was an issue regarding transparency a while back, but I think it was a while ago and you shouldn't be seeing it in 8.2.
As for examples regarding the glyphs, I believe that you would actually have to create an image for each of the states. You can then use the UITypeEditor of the GlyphInfo property (by clicking the button with "..." in the property grid) to set the images for each of the states.