Name
GroupBox
Synopsis
This Control
class can contain other controls
(like a ContainerControl
), but it does not provide
scrolling support, instead rendering a label and border around its
children, which have been added to the Controls
collection.
You can set the FlatStyle
for a group box to
determine how it will be rendered. Note that you should set the
FlatStyle
to System
if you wish
your GroupBox
to support Windows XP theming.
public class GroupBox : Control { // Public Constructors public GroupBox(); // Public Instance Properties public override bool AllowDrop{set; get; } // overrides Control public override Rectangle DisplayRectangle{get; } // overrides Control public FlatStyle FlatStyle{set; get; } public bool TabStop{set; get; } // overrides Control public override string Text{set; get; } // overrides Control // Protected Instance Properties protected override CreateParams CreateParams{get; } // overrides Control protected override Size DefaultSize{get; } // overrides Control // Public Instance Methods public override string ToString(); // overrides System.ComponentModel.Component // Protected Instance Methods protected override void OnFontChanged(EventArgs e); // overrides Control protected override void OnPaint(PaintEventArgs e); // overrides Control protected override bool ProcessMnemonic(char charCode); // overrides Control protected override void WndProc(ref Message m); // overrides Control // Events public event EventHandler Click; // overrides Control public event EventHandler ...
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.