March 2003
Intermediate to advanced
896 pages
32h 35m
English
GroupBox
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 ...
Read now
Unlock full access