5 Replies - 12233 Views - Last Post: 03 February 2010 - 01:24 PM Rate Topic: -----

#1 mattiboi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 02-January 10

Hide C# Group Box

Posted 03 February 2010 - 12:05 PM

Hello All,

I was wondering how would I go about hiding a group box's border.

by default the padding was 3, 3, 3, 3 and I set them all to 0 but it seemed like it had no effect.

Any help would be appreciated

~Thanks~
Is This A Good Question/Topic? 0
  • +

Replies To: Hide C# Group Box

#2 SixOfEleven  Icon User is offline

  • using Caffeine;
  • member icon

Reputation: 945
  • View blog
  • Posts: 6,342
  • Joined: 18-October 08

Re: Hide C# Group Box

Posted 03 February 2010 - 12:39 PM

From the properties available to the group box I don't think that it is possible to hide the border. Everything that I tried wouldn't hide it.
Was This Post Helpful? 0
  • +
  • -

#3 MentalFloss  Icon User is offline

  • "ADDICTED"[2:5]
  • member icon

Reputation: 528
  • View blog
  • Posts: 1,397
  • Joined: 02-September 09

Re: Hide C# Group Box

Posted 03 February 2010 - 12:53 PM

If you want a grouping control without a border, you can use the Panel.
Does that work for you?
Was This Post Helpful? 2
  • +
  • -

#4 Core  Icon User is offline

  • using System.Linq;
  • member icon

Reputation: 774
  • View blog
  • Posts: 5,097
  • Joined: 08-December 08

Re: Hide C# Group Box

Posted 03 February 2010 - 01:00 PM

Since you want to hide the border, why no use the Panel control instead?

Edit: Already pointed out by MentalFloss.
Was This Post Helpful? 1
  • +
  • -

#5 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1526
  • View blog
  • Posts: 5,961
  • Joined: 21-March 08

Re: Hide C# Group Box

Posted 03 February 2010 - 01:03 PM

I agree with MentalFloss. A Panel and a GroupBox do all the same things. A Panel doesn't have a border, and GroupBox does. If you don't want a border, you use the Panel.
Was This Post Helpful? 1
  • +
  • -

#6 jbbatts77  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 07-January 09

Re: Hide C# Group Box

Posted 03 February 2010 - 01:24 PM

you could always derive a custom object from a group box and then override the OnPaint event.

or...you could just use a panel ;)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1