Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Remove border of group box

Remove border of group box

Scheduled Pinned Locked Moved Windows Forms
csharpcomannouncement
6 Posts 6 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi I am using group box in my app. I want to remove the Border of GroupBox. .Net Version used: 2.0

    Regards Aman Bhullar www.arlivesupport.com[^]

    L D I M 4 Replies Last reply
    0
    • L Lost User

      Hi I am using group box in my app. I want to remove the Border of GroupBox. .Net Version used: 2.0

      Regards Aman Bhullar www.arlivesupport.com[^]

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, IIRC you can make it invisible by setting some properties, say ForeColor=BackColor and Text=""; however the border area is still wasted. AFAIK you can't shrink it to just it contents; it that is what you want, why not just use a Panel? PS: I don't think you can have it with title but no border lines. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


      1 Reply Last reply
      0
      • L Lost User

        Hi I am using group box in my app. I want to remove the Border of GroupBox. .Net Version used: 2.0

        Regards Aman Bhullar www.arlivesupport.com[^]

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        That would result in the same functionality as a Panel control.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        1 Reply Last reply
        0
        • L Lost User

          Hi I am using group box in my app. I want to remove the Border of GroupBox. .Net Version used: 2.0

          Regards Aman Bhullar www.arlivesupport.com[^]

          I Offline
          I Offline
          i i i
          wrote on last edited by
          #4

          its better to use other control such as Panel Control or if still you want to do this then you can create your own control by inheriting the group box control but it will be like inventing the wheel. Best of Regards, SOFTDEV

          K 1 Reply Last reply
          0
          • I i i i

            its better to use other control such as Panel Control or if still you want to do this then you can create your own control by inheriting the group box control but it will be like inventing the wheel. Best of Regards, SOFTDEV

            K Offline
            K Offline
            KatMagic
            wrote on last edited by
            #5

            I have a similar problem, and I can't use a panel, or really don't want to, because am using linq to gather all controls of a radiobutton type and linq does not find the controls in a panel, but it will find the controls in a groupbox. Any other ideas?

            1 Reply Last reply
            0
            • L Lost User

              Hi I am using group box in my app. I want to remove the Border of GroupBox. .Net Version used: 2.0

              Regards Aman Bhullar www.arlivesupport.com[^]

              M Offline
              M Offline
              Mugdha_Aditya
              wrote on last edited by
              #6

              You can use css for the same. :)

              .GroupPanel, .GroupPanel Legend
              {
              text-decoration: none;
              border: 0;
              }

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups