Results 1 to 5 of 5

Thread: groupe box

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432

    groupe box

    How can i get a check box in my groupboxs title ?
    Attached Images Attached Images  

  2. #2
    Lively Member
    Join Date
    Aug 2001
    Posts
    65
    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    no i was talking about the PlaySound with the Check box at the top of the frame

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  5. #5
    Hyperactive Member
    Join Date
    Feb 2002
    Posts
    261
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width