Siticone Logo
Siticone UI
DOCS
v2025.12.15
Docs Native Group Box

Siticone Native GroupBox

The SiticoneNativeGroupBox inherits from the standard Windows Forms GroupBox but adds a customizable, modern bottom border accent. It retains all standard GroupBox functionality while offering high-performance rendering and design-time theme support. This control is ideal for creating distinct sections in a form without the visual weight of a full border.

Appearance Properties

Customize the distinctive bottom border accent.

Property Type Description & Usage Example
BorderColorBottom Color gb.BorderColorBottom = Color.BlueViolet; The color of the accent line drawn at the bottom of the group box.
BorderThicknessBottom int gb.BorderThicknessBottom = 3; The thickness (height) of the bottom accent line in pixels.
BackColor Color gb.BackColor = Color.Transparent; The background color. Defaults to Transparent for seamless integration.

Designer Support

The control includes a Smart Tag panel for rapid theming and configuration directly in the Visual Studio designer.

Category Features
Appearance Quick access to BorderColorBottom and BorderThicknessBottom.
Theme Presets Apply instant styles: Light, Dark, Orange, Warning, Error, Success, Secondary.
Utilities Copy/Paste Settings: Easily replicate styles across multiple group boxes.

Detailed Usage Examples

Example 1: Basic Accent Setup

Creating a group box with a custom branded accent line.

C# - Custom Accent
private SiticoneNativeGroupBox CreateBrandedGroup()
{
                var gb = new SiticoneNativeGroupBox
    {
        Text = "User Details",
        Size = new Size(300, 200),
        
                // Branding
        BorderColorBottom = Color.DeepSkyBlue,
        BorderThicknessBottom = 4,
        
                // Standard Properties
        ForeColor = Color.Black,
        Font = new Font("Segoe UI", 10f)
    };

                return gb;
}

Example 2: Semantic Theming

Applying different styles programmatically to indicate status (Success vs Error). Note: While the designer has preset methods, you can easily replicate them in code by setting the properties directly.

C# - Semantic Styling
public void SetStatusStyle(SiticoneNativeGroupBox gb, bool isSuccess)
{
                if (isSuccess)
    {
                // Success Theme
        gb.BackColor = Color.FromArgb(240, 255, 240); // Light Green Bg
        gb.ForeColor = Color.DarkGreen;
        gb.BorderColorBottom = Color.SeaGreen;
        gb.Text = "Operation Successful";
    }
                else
    {
                // Error Theme
        gb.BackColor = Color.FromArgb(255, 240, 240); // Light Red Bg
        gb.ForeColor = Color.DarkRed;
        gb.BorderColorBottom = Color.Crimson;
        gb.Text = "Operation Failed";
    }
    
    gb.BorderThicknessBottom = 3;
}