Panels with titles in their borders?

  • Thread starter Thread starter Brandon McCombs
  • Start date Start date
B

Brandon McCombs

Hello,

Coming from a Java background I'm used to not having to add extra labels
to my windows to inform the user of a group of settings. I can simply
set a raised border to a panel and also put some text in the border so
the panel basically has a title. Is this possible with C#? Using VS .NET
2005 I can only set 2 borders to begin with and that still doesn't solve
the problem of being able to put text in it. Will I need to dirty up the
GUI with extra labels for no good reason? thanks
 
Panels with titles are called GroupBoxes in .Net (and Windows).

If you are in Form's or UserControl's Design mode, you'll see that in your
Toolbox there's a group called "Containers". One of the items there is a
GroupBox.

If you need to place your group of controls inside that box, first put a new
GroupBox onto your layout. Then select your controls, Ctrl+X them, then
select your GroupBox and Ctrl+V your controls.
 
Hi Brandon,

Have you reviewed Ashot's reply to you? Does GroupBox meet your need? If
you still need any help or have any concern, please feel free to feedback,
thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top