Remove border of group box
-
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[^]
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.
-
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[^]
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... -
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[^]
-
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
-
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[^]
You can use css for the same. :)
.GroupPanel, .GroupPanel Legend
{
text-decoration: none;
border: 0;
}