<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FGroupBox</id>
		<title>Csharp/C Sharp/GUI Windows Form/GroupBox - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FGroupBox"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/GroupBox&amp;action=history"/>
		<updated>2026-04-29T19:00:20Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/GroupBox&amp;diff=44&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/GroupBox&amp;diff=44&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/GroupBox&amp;diff=45&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/GroupBox&amp;diff=45&amp;oldid=prev"/>
				<updated>2010-05-26T11:32:42Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==CheckBox inside GroupBox ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
C# Programming Tips &amp;amp; Techniques&lt;br /&gt;
by Charles Wright, Kris Jamsa&lt;br /&gt;
Publisher: Osborne/McGraw-Hill (December 28, 2001)&lt;br /&gt;
ISBN: 0072193794&lt;br /&gt;
*/&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
namespace Group&lt;br /&gt;
{&lt;br /&gt;
  /// &amp;lt;summary&amp;gt;&lt;br /&gt;
  /// Summary description for FormGroup.&lt;br /&gt;
  /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
  public class FormGroup : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.GroupBox groupBox1;&lt;br /&gt;
    private System.Windows.Forms.TextBox textBox1;&lt;br /&gt;
    private System.Windows.Forms.CheckBox checkBox1;&lt;br /&gt;
    private System.Windows.Forms.CheckBox checkBox2;&lt;br /&gt;
    private System.Windows.Forms.CheckBox checkBox3;&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required designer variable.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private System.ruponentModel.Container components = null;&lt;br /&gt;
    public FormGroup()&lt;br /&gt;
    {&lt;br /&gt;
      //&lt;br /&gt;
      // Required for Windows Form Designer support&lt;br /&gt;
      //&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      //&lt;br /&gt;
      // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
      //&lt;br /&gt;
      Application.Idle += new System.EventHandler (OnIdle);&lt;br /&gt;
    }&lt;br /&gt;
    private void OnIdle (object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      groupBox1.Enabled = checkBox3.Checked;&lt;br /&gt;
    }&lt;br /&gt;
    #region Windows Form Designer generated code&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required method for Designer support - do not modify&lt;br /&gt;
    /// the contents of this method with the code editor.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.checkBox3 = new System.Windows.Forms.CheckBox();&lt;br /&gt;
      this.checkBox2 = new System.Windows.Forms.CheckBox();&lt;br /&gt;
      this.textBox1 = new System.Windows.Forms.TextBox();&lt;br /&gt;
      this.groupBox1 = new System.Windows.Forms.GroupBox();&lt;br /&gt;
      this.checkBox1 = new System.Windows.Forms.CheckBox();&lt;br /&gt;
      this.groupBox1.SuspendLayout();&lt;br /&gt;
      this.SuspendLayout();&lt;br /&gt;
      // &lt;br /&gt;
      // checkBox3&lt;br /&gt;
      // &lt;br /&gt;
      this.checkBox3.Location = new System.Drawing.Point(24, 120);&lt;br /&gt;
      this.checkBox3.Name = &amp;quot;checkBox3&amp;quot;;&lt;br /&gt;
      this.checkBox3.Size = new System.Drawing.Size(184, 16);&lt;br /&gt;
      this.checkBox3.TabIndex = 1;&lt;br /&gt;
      this.checkBox3.Text = &amp;quot;checkBox3&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // checkBox2&lt;br /&gt;
      // &lt;br /&gt;
      this.checkBox2.Location = new System.Drawing.Point(136, 56);&lt;br /&gt;
      this.checkBox2.Name = &amp;quot;checkBox2&amp;quot;;&lt;br /&gt;
      this.checkBox2.Size = new System.Drawing.Size(104, 16);&lt;br /&gt;
      this.checkBox2.TabIndex = 2;&lt;br /&gt;
      this.checkBox2.Text = &amp;quot;checkBox2&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // textBox1&lt;br /&gt;
      // &lt;br /&gt;
      this.textBox1.Location = new System.Drawing.Point(16, 24);&lt;br /&gt;
      this.textBox1.Name = &amp;quot;textBox1&amp;quot;;&lt;br /&gt;
      this.textBox1.Size = new System.Drawing.Size(232, 20);&lt;br /&gt;
      this.textBox1.TabIndex = 0;&lt;br /&gt;
      this.textBox1.Text = &amp;quot;textBox1&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // groupBox1&lt;br /&gt;
      // &lt;br /&gt;
      this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                          this.checkBox2,&lt;br /&gt;
                                          this.checkBox1,&lt;br /&gt;
                                          this.textBox1});&lt;br /&gt;
      this.groupBox1.Location = new System.Drawing.Point(16, 16);&lt;br /&gt;
      this.groupBox1.Name = &amp;quot;groupBox1&amp;quot;;&lt;br /&gt;
      this.groupBox1.Size = new System.Drawing.Size(264, 96);&lt;br /&gt;
      this.groupBox1.TabIndex = 0;&lt;br /&gt;
      this.groupBox1.TabStop = false;&lt;br /&gt;
      this.groupBox1.Text = &amp;quot;groupBox1&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // checkBox1&lt;br /&gt;
      // &lt;br /&gt;
      this.checkBox1.Location = new System.Drawing.Point(16, 56);&lt;br /&gt;
      this.checkBox1.Name = &amp;quot;checkBox1&amp;quot;;&lt;br /&gt;
      this.checkBox1.Size = new System.Drawing.Size(104, 16);&lt;br /&gt;
      this.checkBox1.TabIndex = 1;&lt;br /&gt;
      this.checkBox1.Text = &amp;quot;checkBox1&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // FormGroup&lt;br /&gt;
      // &lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(292, 273);&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                      this.checkBox3,&lt;br /&gt;
                                      this.groupBox1});&lt;br /&gt;
      this.Name = &amp;quot;FormGroup&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;FormGroup&amp;quot;;&lt;br /&gt;
      this.groupBox1.ResumeLayout(false);&lt;br /&gt;
      this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
    #endregion&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// The main entry point for the application.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new FormGroup());&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Group Box mouse enter event==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
public class Form1 : System.Windows.Forms.Form {&lt;br /&gt;
    private System.Windows.Forms.GroupBox groupBox1;&lt;br /&gt;
    private System.Windows.Forms.CheckBox checkBox1;&lt;br /&gt;
    private System.Windows.Forms.CheckBox checkBox2;&lt;br /&gt;
    private System.Windows.Forms.CheckBox checkBox3;&lt;br /&gt;
    private System.Windows.Forms.RadioButton radioButton1;&lt;br /&gt;
    private System.Windows.Forms.RadioButton radioButton2;&lt;br /&gt;
    private System.Windows.Forms.RadioButton radioButton3;&lt;br /&gt;
    private System.Windows.Forms.Button button1;&lt;br /&gt;
    private System.ruponentModel.Container components = null;&lt;br /&gt;
    public Form1() {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent() {&lt;br /&gt;
            this.groupBox1 = new System.Windows.Forms.GroupBox();&lt;br /&gt;
            this.checkBox1 = new System.Windows.Forms.CheckBox();&lt;br /&gt;
            this.checkBox2 = new System.Windows.Forms.CheckBox();&lt;br /&gt;
            this.checkBox3 = new System.Windows.Forms.CheckBox();&lt;br /&gt;
            this.radioButton1 = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.radioButton2 = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.radioButton3 = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.button1 = new System.Windows.Forms.Button();&lt;br /&gt;
            this.groupBox1.SuspendLayout();&lt;br /&gt;
            this.SuspendLayout();&lt;br /&gt;
            // &lt;br /&gt;
            // groupBox1&lt;br /&gt;
            // &lt;br /&gt;
            this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                                                                    this.radioButton1,&lt;br /&gt;
                                                                                    this.radioButton2,&lt;br /&gt;
                                                                                    this.radioButton3});&lt;br /&gt;
            this.groupBox1.Location = new System.Drawing.Point(8, 120);&lt;br /&gt;
            this.groupBox1.Name = &amp;quot;groupBox1&amp;quot;;&lt;br /&gt;
            this.groupBox1.Size = new System.Drawing.Size(120, 144);&lt;br /&gt;
            this.groupBox1.TabIndex = 0;&lt;br /&gt;
            this.groupBox1.TabStop = false;&lt;br /&gt;
            this.groupBox1.Text = &amp;quot;Color&amp;quot;;&lt;br /&gt;
            this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);&lt;br /&gt;
            // &lt;br /&gt;
            // checkBox1&lt;br /&gt;
            // &lt;br /&gt;
            this.checkBox1.Location = new System.Drawing.Point(8, 8);&lt;br /&gt;
            this.checkBox1.Name = &amp;quot;checkBox1&amp;quot;;&lt;br /&gt;
            this.checkBox1.TabIndex = 1;&lt;br /&gt;
            this.checkBox1.Text = &amp;quot;Circle&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // checkBox2&lt;br /&gt;
            // &lt;br /&gt;
            this.checkBox2.Location = new System.Drawing.Point(8, 40);&lt;br /&gt;
            this.checkBox2.Name = &amp;quot;checkBox2&amp;quot;;&lt;br /&gt;
            this.checkBox2.TabIndex = 2;&lt;br /&gt;
            this.checkBox2.Text = &amp;quot;Rectangle&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // checkBox3&lt;br /&gt;
            // &lt;br /&gt;
            this.checkBox3.Location = new System.Drawing.Point(8, 72);&lt;br /&gt;
            this.checkBox3.Name = &amp;quot;checkBox3&amp;quot;;&lt;br /&gt;
            this.checkBox3.TabIndex = 3;&lt;br /&gt;
            this.checkBox3.Text = &amp;quot;String&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // radioButton1&lt;br /&gt;
            // &lt;br /&gt;
            this.radioButton1.Location = new System.Drawing.Point(8, 32);&lt;br /&gt;
            this.radioButton1.Name = &amp;quot;radioButton1&amp;quot;;&lt;br /&gt;
            this.radioButton1.TabIndex = 4;&lt;br /&gt;
            this.radioButton1.Text = &amp;quot;Red&amp;quot;;&lt;br /&gt;
            this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // radioButton2&lt;br /&gt;
            // &lt;br /&gt;
            this.radioButton2.Location = new System.Drawing.Point(8, 64);&lt;br /&gt;
            this.radioButton2.Name = &amp;quot;radioButton2&amp;quot;;&lt;br /&gt;
            this.radioButton2.TabIndex = 5;&lt;br /&gt;
            this.radioButton2.Text = &amp;quot;Green&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // radioButton3&lt;br /&gt;
            // &lt;br /&gt;
            this.radioButton3.Location = new System.Drawing.Point(8, 96);&lt;br /&gt;
            this.radioButton3.Name = &amp;quot;radioButton3&amp;quot;;&lt;br /&gt;
            this.radioButton3.TabIndex = 6;&lt;br /&gt;
            this.radioButton3.Text = &amp;quot;Blue&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // button1&lt;br /&gt;
            // &lt;br /&gt;
            this.button1.Location = new System.Drawing.Point(8, 280);&lt;br /&gt;
            this.button1.Name = &amp;quot;button1&amp;quot;;&lt;br /&gt;
            this.button1.Size = new System.Drawing.Size(112, 32);&lt;br /&gt;
            this.button1.TabIndex = 4;&lt;br /&gt;
            this.button1.Text = &amp;quot;Draw&amp;quot;;&lt;br /&gt;
            this.button1.Click += new System.EventHandler(this.button1_Click);&lt;br /&gt;
            // &lt;br /&gt;
            // Form1&lt;br /&gt;
            // &lt;br /&gt;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
            this.ClientSize = new System.Drawing.Size(408, 317);&lt;br /&gt;
            this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                                                          this.button1,&lt;br /&gt;
                                                                          this.checkBox3,&lt;br /&gt;
                                                                          this.checkBox2,&lt;br /&gt;
                                                                          this.checkBox1,&lt;br /&gt;
                                                                          this.groupBox1});&lt;br /&gt;
            this.Name = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
            this.Text = &amp;quot;CheckBox and RadioButton Sample&amp;quot;;&lt;br /&gt;
            this.groupBox1.ResumeLayout(false);&lt;br /&gt;
            this.ResumeLayout(false);&lt;br /&gt;
        }&lt;br /&gt;
        [STAThread]&lt;br /&gt;
        static void Main() &lt;br /&gt;
        {&lt;br /&gt;
            Application.Run(new Form1());&lt;br /&gt;
        }&lt;br /&gt;
        private void groupBox1_Enter(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
           Console.WriteLine(&amp;quot;group box enter event&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        private void radioButton1_CheckedChanged(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
           Console.WriteLine(&amp;quot;Radio Button checked changed event&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        private void button1_Click(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Graphics g = Graphics.FromHwnd(this.Handle);&lt;br /&gt;
            String str = &amp;quot;&amp;quot;;&lt;br /&gt;
            Rectangle rc = new Rectangle(150, 50, 250, 250);&lt;br /&gt;
            &lt;br /&gt;
            if(radioButton1.Checked)&lt;br /&gt;
            {&lt;br /&gt;
                str = &amp;quot;red&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
            if(radioButton2.Checked)&lt;br /&gt;
            {&lt;br /&gt;
                str+=&amp;quot;Green&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
            if(radioButton3.Checked)&lt;br /&gt;
            {&lt;br /&gt;
                str+=&amp;quot;Blue&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
            if (checkBox1.Checked)&lt;br /&gt;
            {&lt;br /&gt;
                str+=&amp;quot;Ellipse&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
            if (checkBox2.Checked)&lt;br /&gt;
            {&lt;br /&gt;
                str += &amp;quot;Rectangle&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
            if (checkBox3.Checked)&lt;br /&gt;
            {&lt;br /&gt;
                g.FillRectangle(new SolidBrush(Color.White), rc);&lt;br /&gt;
                g.DrawString(str, new Font(&amp;quot;Verdana&amp;quot;, 12), new SolidBrush(Color.Black), rc);&lt;br /&gt;
            }&lt;br /&gt;
            &lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using GroupBoxes and Panels to hold buttons==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
   using System;&lt;br /&gt;
   using System.Drawing;&lt;br /&gt;
   using System.Collections;&lt;br /&gt;
   using System.ruponentModel;&lt;br /&gt;
   using System.Windows.Forms;&lt;br /&gt;
   using System.Data;&lt;br /&gt;
   public class GroupBoxPanelExample : System.Windows.Forms.Form&lt;br /&gt;
   {&lt;br /&gt;
      private System.Windows.Forms.Button hiButton;&lt;br /&gt;
      private System.Windows.Forms.Button byeButton;&lt;br /&gt;
      private System.Windows.Forms.Button leftButton;&lt;br /&gt;
      private System.Windows.Forms.Button rightButton;&lt;br /&gt;
      private System.Windows.Forms.GroupBox mainGroupBox;&lt;br /&gt;
      private System.Windows.Forms.Label messageLabel;&lt;br /&gt;
      private System.Windows.Forms.Panel mainPanel;&lt;br /&gt;
      public GroupBoxPanelExample()&lt;br /&gt;
      {&lt;br /&gt;
         InitializeComponent();&lt;br /&gt;
      }&lt;br /&gt;
      private void InitializeComponent()&lt;br /&gt;
      {&lt;br /&gt;
         this.messageLabel = new System.Windows.Forms.Label();&lt;br /&gt;
         this.byeButton = new System.Windows.Forms.Button();&lt;br /&gt;
         this.mainGroupBox = new System.Windows.Forms.GroupBox();&lt;br /&gt;
         this.hiButton = new System.Windows.Forms.Button();&lt;br /&gt;
         this.mainPanel = new System.Windows.Forms.Panel();&lt;br /&gt;
         this.rightButton = new System.Windows.Forms.Button();&lt;br /&gt;
         this.leftButton = new System.Windows.Forms.Button();&lt;br /&gt;
         this.mainGroupBox.SuspendLayout();&lt;br /&gt;
         this.mainPanel.SuspendLayout();&lt;br /&gt;
         this.SuspendLayout();&lt;br /&gt;
         this.messageLabel.Location = new System.Drawing.Point( 24, 144 );&lt;br /&gt;
         this.messageLabel.Name = &amp;quot;messageLabel&amp;quot;;&lt;br /&gt;
         this.messageLabel.Size = new System.Drawing.Size( 176, 32 );&lt;br /&gt;
         this.messageLabel.TabIndex = 2;&lt;br /&gt;
         this.byeButton.Location = new System.Drawing.Point( 96, 48 );&lt;br /&gt;
         this.byeButton.Name = &amp;quot;byeButton&amp;quot;;&lt;br /&gt;
         this.byeButton.Size = new System.Drawing.Size( 72, 32 );&lt;br /&gt;
         this.byeButton.TabIndex = 0;&lt;br /&gt;
         this.byeButton.Text = &amp;quot;B&amp;quot;;&lt;br /&gt;
         this.byeButton.Click += new System.EventHandler( this.byeButton_Click );&lt;br /&gt;
         this.mainGroupBox.Controls.AddRange( new System.Windows.Forms.Control[] {&lt;br /&gt;
            this.byeButton, this.hiButton } );&lt;br /&gt;
         this.mainGroupBox.Location = new System.Drawing.Point( 24, 24 );&lt;br /&gt;
         this.mainGroupBox.Name = &amp;quot;mainGroupBox&amp;quot;;&lt;br /&gt;
         this.mainGroupBox.Size = new System.Drawing.Size( 176, 104 );&lt;br /&gt;
         this.mainGroupBox.TabIndex = 0;&lt;br /&gt;
         this.mainGroupBox.TabStop = false;&lt;br /&gt;
         this.mainGroupBox.Text = &amp;quot;Main GroupBox&amp;quot;;&lt;br /&gt;
         this.hiButton.Location = new System.Drawing.Point( 8, 48 );&lt;br /&gt;
         this.hiButton.Name = &amp;quot;hiButton&amp;quot;;&lt;br /&gt;
         this.hiButton.Size = new System.Drawing.Size( 72, 32 );&lt;br /&gt;
         this.hiButton.TabIndex = 0;&lt;br /&gt;
         this.hiButton.Text = &amp;quot;A&amp;quot;;&lt;br /&gt;
         this.hiButton.Click += new System.EventHandler(this.hiButton_Click );&lt;br /&gt;
         this.mainPanel.AutoScroll = true;&lt;br /&gt;
         this.mainPanel.BorderStyle =System.Windows.Forms.BorderStyle.FixedSingle;&lt;br /&gt;
         this.mainPanel.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
            this.rightButton,this.leftButton } );&lt;br /&gt;
         this.mainPanel.Location =new System.Drawing.Point( 24, 192 );&lt;br /&gt;
         this.mainPanel.Name = &amp;quot;mainPanel&amp;quot;;&lt;br /&gt;
         this.mainPanel.Size =new System.Drawing.Size( 176, 112 );&lt;br /&gt;
         this.mainPanel.TabIndex = 1;&lt;br /&gt;
         this.rightButton.Location =new System.Drawing.Point( 264, 40 );&lt;br /&gt;
         this.rightButton.Name = &amp;quot;rightButton&amp;quot;;&lt;br /&gt;
         this.rightButton.Size =new System.Drawing.Size( 80, 40 );&lt;br /&gt;
         this.rightButton.TabIndex = 0;&lt;br /&gt;
         this.rightButton.Text = &amp;quot;Far Right&amp;quot;;&lt;br /&gt;
         this.rightButton.Click += new System.EventHandler(this.rightButton_Click );&lt;br /&gt;
         this.leftButton.Location =new System.Drawing.Point( 8, 40 );&lt;br /&gt;
         this.leftButton.Name = &amp;quot;leftButton&amp;quot;;&lt;br /&gt;
         this.leftButton.Size =new System.Drawing.Size( 80, 40 );&lt;br /&gt;
         this.leftButton.TabIndex = 0;&lt;br /&gt;
         this.leftButton.Text = &amp;quot;Far Left&amp;quot;;&lt;br /&gt;
         this.leftButton.Click +=new System.EventHandler( this.leftButton_Click );&lt;br /&gt;
         this.AutoScaleBaseSize =new System.Drawing.Size( 5, 13 );&lt;br /&gt;
         this.ClientSize =new System.Drawing.Size( 224, 317 );&lt;br /&gt;
         this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
               this.messageLabel,this.mainPanel,this.mainGroupBox } );&lt;br /&gt;
         this.Name = &amp;quot;GroupBoxPanelExample&amp;quot;;&lt;br /&gt;
         this.Text = &amp;quot;GroupBoxPanelExample&amp;quot;;&lt;br /&gt;
         this.mainGroupBox.ResumeLayout( false );&lt;br /&gt;
         this.mainPanel.ResumeLayout( false );&lt;br /&gt;
         this.ResumeLayout( false );&lt;br /&gt;
      }&lt;br /&gt;
      [STAThread]&lt;br /&gt;
      static void Main() &lt;br /&gt;
      {&lt;br /&gt;
         Application.Run( new GroupBoxPanelExample() );&lt;br /&gt;
      }&lt;br /&gt;
      private void hiButton_Click( object sender, System.EventArgs e )&lt;br /&gt;
      {&lt;br /&gt;
         messageLabel.Text= &amp;quot;A pressed&amp;quot;;&lt;br /&gt;
      }&lt;br /&gt;
      private void byeButton_Click(object sender, System.EventArgs e )&lt;br /&gt;
      {&lt;br /&gt;
         messageLabel.Text = &amp;quot;B pressed&amp;quot;;&lt;br /&gt;
      }&lt;br /&gt;
      private void leftButton_Click(object sender, System.EventArgs e )&lt;br /&gt;
      {&lt;br /&gt;
         messageLabel.Text = &amp;quot;Far left pressed&amp;quot;;&lt;br /&gt;
      }&lt;br /&gt;
      private void rightButton_Click( &lt;br /&gt;
         object sender, System.EventArgs e )&lt;br /&gt;
      {&lt;br /&gt;
         messageLabel.Text = &amp;quot;Far right pressed&amp;quot;;&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>