I think you'd have to make your own control, but maybe you could inherit the frame/groupbox control and then just add the checkbox to it. I'e made two controls in .NET but didn't do a very good job. But I bet if you poke around you can come up with something. Inheritance is great thing.
Originally posted by Edneeis I think you'd have to make your own control, but maybe you could inherit the frame/groupbox control and then just add the checkbox to it. I'e made two controls in .NET but didn't do a very good job. But I bet if you poke around you can come up with something. Inheritance is great thing.
You don't have to do anything that drastic! Inheritance is good, but your code may become a lot harder to read and debug if you go crazy with it!
I think you can just change some code in the 'Windows Form Designer Generated Code' area. Just take the checkbox out from the GroupBox's Controls collection, and set its left/top properties to the same values as the group box's left/top properties. Also, you may have to set the checkbox's zorder property, so it actually gets drawn on top of the group box rather than behind it!
If you need more help, I'd be happy to provide an example!