How can i get a check box in my groupboxs title ?
Printable View
How can i get a check box in my groupboxs title ?
I take it then, that part of the check box disappears when you place it at the top?
Maybe try using the Panel control instead, that's supposed to work like the old Frame control in VB6.
no i was talking about the PlaySound with the Check box at the top of the frame
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!Quote:
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.
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!