Groupbox w/ Bold setting issue

Posted on 2009-05-26
Medium Priority
Last Modified: 2012-05-07
I like using a groupbox because it has a header text associated with it.  However, I want the header text to be bold but I don't want to automatically enable bold for all controls inside the groupbox.

The current one I just created has a datagridview, multiple labels and textboxes in it but it only automated the datagridview as bold.  When I modify the datagridview to remove the bold settings, the rebuild of the application sets it back to bold.

Very disturbing.  I would use a panel but then I have to create a separate label to accomodate the need for the header text.

Am I missing something where there is a setting that will disallow the bold setting for controls inside the groupbox ?

Phil Tate
Question by:TSFLLC
1 Comment
LVL 83

Accepted Solution

CodeCruiser earned 2000 total points
ID: 24473713
Because the purpose of the groupbox is to group a number of controls into one bundle to make it easy to process them, any changes applied to groupbox are inherited by the controls inside. These include the font, visible etc.
A custom control is created at the following link and might be useful for you.

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
To export Lotus Notes to Outlook PST or Exchange and Domino Server files to Exchange Server or PST files with ease, go for Kernel for Lotus Notes to Outlook conversion tool. Through the video, you can watch the conversion process. A common user with…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question