Article
    C#
    ADO.Net
    .NET
    ASP.Net & Web Forms
    Custom Controls
    Web Development
    Exception Handling
    XML
    Database
    Security in .Net
    Testing
    Web Services
    Windows Services
    Windows Controls
    WCF
    AJAX
    WPF
    XAML
    Reporting
    Setup
    VB.Net
    LINQ
    JQuery
    SilverLight
    JavaScript
    HTML5
    Crystal Report
    Cloud Computing
    Share Point
    Visual C++
    MVC
    Android
    PHP
    Java
    HTML
    WordPress
    Joomla
    Products
    Drupal
    Windows Phone
    JSON
    LightSwitch
    iPhone/iPad
    Ruby on Rails
    IIS 7
    Windows 8
    CSS/CSS3
    Excel
    MS Access
    Shortcut Keys
    Visual SourceSafe
    Team Foundation Server
    APIs
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Top Contributor
Advertisement
Advertise with Us
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog

Home >> C# >> GroupBox Control in C#.Net
GroupBox Control in C#.Net
GroupBox Control in C#.Net


by Monaj Singh on 1/24/2011 7:29:08 PM

Views: 3655       Comments: 0

GroupBox Control in C#.Net

GroupBox control is a container of other control. The GroupBox control displays a frame around a group of controls with or without a caption. When you move the GroupBox control, all of its contained controls move too.

How to use GroupBox Control

Drag and drop GroupBox control from toolbox on the window Form. . When you drag and drop group box, it has a border by default, and its caption is set to the name of the control. You can change its caption.

GroupBox Control in C#.Net

You can insert other control in side GroupBox control.

GroupBox Control in C#.Net

GroupBox properties

AutoSize:  Gets or sets a value that indicates whether the GroupBox resizes based on its contents.

BackColor: Gets or sets the background color for the control. 

ForeColor: ForeColor of all control in side GroupBox can be change at a time.

Example:

private void GroupBox_Load(object sender, EventArgs e)

{

            //Change Fore color of all control in side GroupBox

            groupBox1.ForeColor = Color.RoyalBlue;

}

Fore color of all control in side GroupBox will be change when apllication run.

Output

GroupBox Control in C#.Net

Report Abuse Form
Reason:    
 

Title :
Comment :
Text ColorBackground Color
BoldItalicUnderline
LeftCenterRightJustify
Ordered ListBulleted List
IndentOutdent
Horizontal Rule
SubscriptSuperscript
HyperlinkImage
Design ModeDesign
View HtmlHtml
     
 
Latest Article by Monaj SinghRSS Feed
    
    
    
    
More...
Latest BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Top Viewed ArticlesRSS Feed
    
    
    
    
    
    
    
    
    
    
Top Viewed BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
Latest Interview QuestionsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Total Online Users: 6474
Advertisement
MindStick Cleaner
Advertise with Us
  
Copyright © 2013MindStick. All Rights Reserved.