<?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%2FDocking</id>
		<title>Csharp/C Sharp/GUI Windows Form/Docking - История изменений</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%2FDocking"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Docking&amp;action=history"/>
		<updated>2026-04-30T04:03:31Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Docking&amp;diff=132&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/Docking&amp;diff=132&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/Docking&amp;diff=133&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/Docking&amp;diff=133&amp;oldid=prev"/>
				<updated>2010-05-26T11:33:25Z</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;==Control Docking==&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 Docking&lt;br /&gt;
{&lt;br /&gt;
  /// &amp;lt;summary&amp;gt;&lt;br /&gt;
  /// Summary description for FormDocking.&lt;br /&gt;
  /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
  public class FormDocking : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.StatusBar statusBar1;&lt;br /&gt;
    private System.Windows.Forms.Label label1;&lt;br /&gt;
    private System.Windows.Forms.TextBox textBox1;&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 FormDocking()&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;
    }&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Clean up any resources being used.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    protected override void Dispose( bool disposing )&lt;br /&gt;
    {&lt;br /&gt;
      if( disposing )&lt;br /&gt;
      {&lt;br /&gt;
        if (components != null) &lt;br /&gt;
        {&lt;br /&gt;
          components.Dispose();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
      base.Dispose( disposing );&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.statusBar1 = new System.Windows.Forms.StatusBar();&lt;br /&gt;
      this.textBox1 = new System.Windows.Forms.TextBox();&lt;br /&gt;
      this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.SuspendLayout();&lt;br /&gt;
      // &lt;br /&gt;
      // statusBar1&lt;br /&gt;
      // &lt;br /&gt;
      this.statusBar1.Location = new System.Drawing.Point(0, 253);&lt;br /&gt;
      this.statusBar1.Name = &amp;quot;statusBar1&amp;quot;;&lt;br /&gt;
      this.statusBar1.Size = new System.Drawing.Size(292, 20);&lt;br /&gt;
      this.statusBar1.TabIndex = 9;&lt;br /&gt;
      this.statusBar1.Text = &amp;quot;statusBar1&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // textBox1&lt;br /&gt;
      // &lt;br /&gt;
      this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;&lt;br /&gt;
      this.textBox1.Multiline = true;&lt;br /&gt;
      this.textBox1.Name = &amp;quot;textBox1&amp;quot;;&lt;br /&gt;
      this.textBox1.Size = new System.Drawing.Size(292, 273);&lt;br /&gt;
      this.textBox1.TabIndex = 2;&lt;br /&gt;
      this.textBox1.Text = &amp;quot;Top Bottom Left Right&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // label1&lt;br /&gt;
      // &lt;br /&gt;
      this.label1.Dock = System.Windows.Forms.DockStyle.Top;&lt;br /&gt;
      this.label1.Name = &amp;quot;label1&amp;quot;;&lt;br /&gt;
      this.label1.Size = new System.Drawing.Size(292, 16);&lt;br /&gt;
      this.label1.TabIndex = 10;&lt;br /&gt;
      this.label1.Text = &amp;quot;Docking Sample&amp;quot;;&lt;br /&gt;
      this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;&lt;br /&gt;
      // &lt;br /&gt;
      // FormDocking&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.label1,&lt;br /&gt;
                                      this.statusBar1,&lt;br /&gt;
                                      this.textBox1});&lt;br /&gt;
      this.Name = &amp;quot;FormDocking&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;FormDocking&amp;quot;;&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 FormDocking());&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;
==Docking Demo==&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;
User Interfaces in C#: Windows Forms and Custom Controls&lt;br /&gt;
by Matthew MacDonald&lt;br /&gt;
Publisher: Apress&lt;br /&gt;
ISBN: 1590590457&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 Docking&lt;br /&gt;
{&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Summary description for Docking.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    public class Docking : System.Windows.Forms.Form&lt;br /&gt;
    {&lt;br /&gt;
        internal System.Windows.Forms.GroupBox GroupBox1;&lt;br /&gt;
        internal System.Windows.Forms.Button cmdUpdate;&lt;br /&gt;
        internal System.Windows.Forms.NumericUpDown udDockPaddingForm;&lt;br /&gt;
        internal System.Windows.Forms.NumericUpDown udDockPaddingPanel;&lt;br /&gt;
        internal System.Windows.Forms.ruboBox lstDockPanel;&lt;br /&gt;
        internal System.Windows.Forms.Label Label3;&lt;br /&gt;
        internal System.Windows.Forms.Label Label4;&lt;br /&gt;
        internal System.Windows.Forms.ruboBox lstDockTextBox;&lt;br /&gt;
        internal System.Windows.Forms.Label Label2;&lt;br /&gt;
        internal System.Windows.Forms.Label Label1;&lt;br /&gt;
        internal System.Windows.Forms.Panel pnlDock;&lt;br /&gt;
        internal System.Windows.Forms.TextBox txtDock;&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 Docking()&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;
        }&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Clean up any resources being used.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        protected override void Dispose( bool disposing )&lt;br /&gt;
        {&lt;br /&gt;
            if( disposing )&lt;br /&gt;
            {&lt;br /&gt;
                if (components != null) &lt;br /&gt;
                {&lt;br /&gt;
                    components.Dispose();&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            base.Dispose( disposing );&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.GroupBox1 = new System.Windows.Forms.GroupBox();&lt;br /&gt;
            this.cmdUpdate = new System.Windows.Forms.Button();&lt;br /&gt;
            this.udDockPaddingForm = new System.Windows.Forms.NumericUpDown();&lt;br /&gt;
            this.udDockPaddingPanel = new System.Windows.Forms.NumericUpDown();&lt;br /&gt;
            this.lstDockPanel = new System.Windows.Forms.ruboBox();&lt;br /&gt;
            this.Label3 = new System.Windows.Forms.Label();&lt;br /&gt;
            this.Label4 = new System.Windows.Forms.Label();&lt;br /&gt;
            this.lstDockTextBox = new System.Windows.Forms.ruboBox();&lt;br /&gt;
            this.Label2 = new System.Windows.Forms.Label();&lt;br /&gt;
            this.Label1 = new System.Windows.Forms.Label();&lt;br /&gt;
            this.pnlDock = new System.Windows.Forms.Panel();&lt;br /&gt;
            this.txtDock = new System.Windows.Forms.TextBox();&lt;br /&gt;
            this.GroupBox1.SuspendLayout();&lt;br /&gt;
            ((System.ruponentModel.ISupportInitialize)(this.udDockPaddingForm)).BeginInit();&lt;br /&gt;
            ((System.ruponentModel.ISupportInitialize)(this.udDockPaddingPanel)).BeginInit();&lt;br /&gt;
            this.pnlDock.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.cmdUpdate,&lt;br /&gt;
                                                                                    this.udDockPaddingForm,&lt;br /&gt;
                                                                                    this.udDockPaddingPanel,&lt;br /&gt;
                                                                                    this.lstDockPanel,&lt;br /&gt;
                                                                                    this.Label3,&lt;br /&gt;
                                                                                    this.Label4,&lt;br /&gt;
                                                                                    this.lstDockTextBox,&lt;br /&gt;
                                                                                    this.Label2,&lt;br /&gt;
                                                                                    this.Label1});&lt;br /&gt;
            this.GroupBox1.Location = new System.Drawing.Point(192, 20);&lt;br /&gt;
            this.GroupBox1.Name = &amp;quot;GroupBox1&amp;quot;;&lt;br /&gt;
            this.GroupBox1.Size = new System.Drawing.Size(284, 224);&lt;br /&gt;
            this.GroupBox1.TabIndex = 12;&lt;br /&gt;
            this.GroupBox1.TabStop = false;&lt;br /&gt;
            this.GroupBox1.Text = &amp;quot;Configure&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // cmdUpdate&lt;br /&gt;
            // &lt;br /&gt;
            this.cmdUpdate.Location = new System.Drawing.Point(160, 180);&lt;br /&gt;
            this.cmdUpdate.Name = &amp;quot;cmdUpdate&amp;quot;;&lt;br /&gt;
            this.cmdUpdate.Size = new System.Drawing.Size(84, 24);&lt;br /&gt;
            this.cmdUpdate.TabIndex = 10;&lt;br /&gt;
            this.cmdUpdate.Text = &amp;quot;Update&amp;quot;;&lt;br /&gt;
            this.cmdUpdate.Click += new System.EventHandler(this.cmdUpdate_Click);&lt;br /&gt;
            // &lt;br /&gt;
            // udDockPaddingForm&lt;br /&gt;
            // &lt;br /&gt;
            this.udDockPaddingForm.Increment = new System.Decimal(new int[] {&lt;br /&gt;
                                                                                5,&lt;br /&gt;
                                                                                0,&lt;br /&gt;
                                                                                0,&lt;br /&gt;
                                                                                0});&lt;br /&gt;
            this.udDockPaddingForm.Location = new System.Drawing.Point(160, 32);&lt;br /&gt;
            this.udDockPaddingForm.Name = &amp;quot;udDockPaddingForm&amp;quot;;&lt;br /&gt;
            this.udDockPaddingForm.Size = new System.Drawing.Size(52, 21);&lt;br /&gt;
            this.udDockPaddingForm.TabIndex = 4;&lt;br /&gt;
            // &lt;br /&gt;
            // udDockPaddingPanel&lt;br /&gt;
            // &lt;br /&gt;
            this.udDockPaddingPanel.Increment = new System.Decimal(new int[] {&lt;br /&gt;
                                                                                 5,&lt;br /&gt;
                                                                                 0,&lt;br /&gt;
                                                                                 0,&lt;br /&gt;
                                                                                 0});&lt;br /&gt;
            this.udDockPaddingPanel.Location = new System.Drawing.Point(160, 56);&lt;br /&gt;
            this.udDockPaddingPanel.Name = &amp;quot;udDockPaddingPanel&amp;quot;;&lt;br /&gt;
            this.udDockPaddingPanel.Size = new System.Drawing.Size(52, 21);&lt;br /&gt;
            this.udDockPaddingPanel.TabIndex = 5;&lt;br /&gt;
            this.udDockPaddingPanel.Value = new System.Decimal(new int[] {&lt;br /&gt;
                                                                             20,&lt;br /&gt;
                                                                             0,&lt;br /&gt;
                                                                             0,&lt;br /&gt;
                                                                             0});&lt;br /&gt;
            // &lt;br /&gt;
            // lstDockPanel&lt;br /&gt;
            // &lt;br /&gt;
            this.lstDockPanel.DropDownStyle = System.Windows.Forms.ruboBoxStyle.DropDownList;&lt;br /&gt;
            this.lstDockPanel.Location = new System.Drawing.Point(156, 100);&lt;br /&gt;
            this.lstDockPanel.Name = &amp;quot;lstDockPanel&amp;quot;;&lt;br /&gt;
            this.lstDockPanel.Size = new System.Drawing.Size(92, 21);&lt;br /&gt;
            this.lstDockPanel.TabIndex = 8;&lt;br /&gt;
            // &lt;br /&gt;
            // Label3&lt;br /&gt;
            // &lt;br /&gt;
            this.Label3.Location = new System.Drawing.Point(16, 104);&lt;br /&gt;
            this.Label3.Name = &amp;quot;Label3&amp;quot;;&lt;br /&gt;
            this.Label3.Size = new System.Drawing.Size(136, 20);&lt;br /&gt;
            this.Label3.TabIndex = 6;&lt;br /&gt;
            this.Label3.Text = &amp;quot;Dock Panel To:&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // Label4&lt;br /&gt;
            // &lt;br /&gt;
            this.Label4.Location = new System.Drawing.Point(16, 128);&lt;br /&gt;
            this.Label4.Name = &amp;quot;Label4&amp;quot;;&lt;br /&gt;
            this.Label4.Size = new System.Drawing.Size(136, 20);&lt;br /&gt;
            this.Label4.TabIndex = 7;&lt;br /&gt;
            this.Label4.Text = &amp;quot;Dock TextBox To:&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // lstDockTextBox&lt;br /&gt;
            // &lt;br /&gt;
            this.lstDockTextBox.DropDownStyle = System.Windows.Forms.ruboBoxStyle.DropDownList;&lt;br /&gt;
            this.lstDockTextBox.Location = new System.Drawing.Point(156, 124);&lt;br /&gt;
            this.lstDockTextBox.Name = &amp;quot;lstDockTextBox&amp;quot;;&lt;br /&gt;
            this.lstDockTextBox.Size = new System.Drawing.Size(92, 21);&lt;br /&gt;
            this.lstDockTextBox.TabIndex = 9;&lt;br /&gt;
            // &lt;br /&gt;
            // Label2&lt;br /&gt;
            // &lt;br /&gt;
            this.Label2.Location = new System.Drawing.Point(16, 60);&lt;br /&gt;
            this.Label2.Name = &amp;quot;Label2&amp;quot;;&lt;br /&gt;
            this.Label2.Size = new System.Drawing.Size(136, 20);&lt;br /&gt;
            this.Label2.TabIndex = 3;&lt;br /&gt;
            this.Label2.Text = &amp;quot;Set Panel\&amp;quot;s DockPadding:&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // Label1&lt;br /&gt;
            // &lt;br /&gt;
            this.Label1.Location = new System.Drawing.Point(16, 36);&lt;br /&gt;
            this.Label1.Name = &amp;quot;Label1&amp;quot;;&lt;br /&gt;
            this.Label1.Size = new System.Drawing.Size(136, 20);&lt;br /&gt;
            this.Label1.TabIndex = 2;&lt;br /&gt;
            this.Label1.Text = &amp;quot;Set Form\&amp;quot;s DockPadding:&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // pnlDock&lt;br /&gt;
            // &lt;br /&gt;
            this.pnlDock.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                                                                  this.txtDock});&lt;br /&gt;
            this.pnlDock.Dock = System.Windows.Forms.DockStyle.Left;&lt;br /&gt;
            this.pnlDock.DockPadding.All = 20;&lt;br /&gt;
            this.pnlDock.Font = new System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));&lt;br /&gt;
            this.pnlDock.Name = &amp;quot;pnlDock&amp;quot;;&lt;br /&gt;
            this.pnlDock.Size = new System.Drawing.Size(224, 314);&lt;br /&gt;
            this.pnlDock.TabIndex = 11;&lt;br /&gt;
            // &lt;br /&gt;
            // txtDock&lt;br /&gt;
            // &lt;br /&gt;
            this.txtDock.Dock = System.Windows.Forms.DockStyle.Left;&lt;br /&gt;
            this.txtDock.Font = new System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));&lt;br /&gt;
            this.txtDock.Location = new System.Drawing.Point(20, 20);&lt;br /&gt;
            this.txtDock.Multiline = true;&lt;br /&gt;
            this.txtDock.Name = &amp;quot;txtDock&amp;quot;;&lt;br /&gt;
            this.txtDock.Size = new System.Drawing.Size(108, 274);&lt;br /&gt;
            this.txtDock.TabIndex = 0;&lt;br /&gt;
            this.txtDock.Text = &amp;quot;I\&amp;quot;m docked to the edge of this Panel.\r\n\r\nThe Panel is docked to the edge of the f&amp;quot; +&lt;br /&gt;
                &amp;quot;orm.\r\n\r\nThe Panel\&amp;quot;s DockPadding gives the necessary room to breathe.&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // Docking&lt;br /&gt;
            // &lt;br /&gt;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);&lt;br /&gt;
            this.ClientSize = new System.Drawing.Size(496, 314);&lt;br /&gt;
            this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                                                          this.GroupBox1,&lt;br /&gt;
                                                                          this.pnlDock});&lt;br /&gt;
            this.Font = new System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));&lt;br /&gt;
            this.Name = &amp;quot;Docking&amp;quot;;&lt;br /&gt;
            this.Text = &amp;quot;Docking At Work&amp;quot;;&lt;br /&gt;
            this.Load += new System.EventHandler(this.Docking_Load);&lt;br /&gt;
            this.GroupBox1.ResumeLayout(false);&lt;br /&gt;
            ((System.ruponentModel.ISupportInitialize)(this.udDockPaddingForm)).EndInit();&lt;br /&gt;
            ((System.ruponentModel.ISupportInitialize)(this.udDockPaddingPanel)).EndInit();&lt;br /&gt;
            this.pnlDock.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 Docking());&lt;br /&gt;
        }&lt;br /&gt;
        private void Docking_Load(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            lstDockPanel.Items.AddRange(Enum.GetNames(Dock.GetType()));&lt;br /&gt;
            lstDockTextBox.Items.AddRange(Enum.GetNames(Dock.GetType()));&lt;br /&gt;
        }&lt;br /&gt;
        private void cmdUpdate_Click(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            this.DockPadding.All = (int)udDockPaddingForm.Value;&lt;br /&gt;
            pnlDock.DockPadding.All = (int)udDockPaddingPanel.Value;&lt;br /&gt;
            &lt;br /&gt;
            // Now we use some rather unusual code to translate the string&lt;br /&gt;
            //  in the listbox into an enumeration object that can be used&lt;br /&gt;
            //  to set the Dock property.&lt;br /&gt;
            // This looks quite strange, but is actually just one more&lt;br /&gt;
            //  part of the shared class library.&lt;br /&gt;
            &lt;br /&gt;
            // First we get the converter that can do the job.&lt;br /&gt;
            TypeConverter converter;&lt;br /&gt;
            converter = TypeDescriptor.GetConverter(Dock.GetType());&lt;br /&gt;
            &lt;br /&gt;
            // Then we use it to convert the string.&lt;br /&gt;
            pnlDock.Dock = (DockStyle)converter.ConvertFromString(lstDockPanel.Text);&lt;br /&gt;
            txtDock.Dock = (DockStyle)converter.ConvertFromString(lstDockTextBox.Text);&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;
==Dock Style: Bottom==&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 AnchorForm : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.Button button1;&lt;br /&gt;
    public AnchorForm()&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      CenterToScreen();&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.button1 = new System.Windows.Forms.Button();&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {this.button1});&lt;br /&gt;
      this.Text = &amp;quot;Anchoring (and Docking) Controls&amp;quot;;&lt;br /&gt;
      &lt;br /&gt;
            //dock Bottom&lt;br /&gt;
        &lt;br /&gt;
      button1.Dock = DockStyle.Bottom;&lt;br /&gt;
      button1.Text = &amp;quot;Anchor: &amp;quot; + button1.Anchor.ToString() + &lt;br /&gt;
        &amp;quot;\nDock: &amp;quot; + button1.Dock.ToString();&lt;br /&gt;
    }&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new AnchorForm());&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;
==Dock style: Fill==&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 AnchorForm : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.Button button1;&lt;br /&gt;
    public AnchorForm()&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      CenterToScreen();&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.button1 = new System.Windows.Forms.Button();&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {this.button1});&lt;br /&gt;
      this.Text = &amp;quot;Anchoring (and Docking) Controls&amp;quot;;&lt;br /&gt;
      &lt;br /&gt;
            // dock Fill&lt;br /&gt;
      button1.Dock = DockStyle.Fill;&lt;br /&gt;
      button1.Text = &amp;quot;Anchor: &amp;quot; + button1.Anchor.ToString() + &lt;br /&gt;
        &amp;quot;\nDock: &amp;quot; + button1.Dock.ToString();&lt;br /&gt;
    }&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new AnchorForm());&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;
==Dock Style: Left==&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 AnchorForm : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.Button button1;&lt;br /&gt;
    public AnchorForm()&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      CenterToScreen();&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.button1 = new System.Windows.Forms.Button();&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {this.button1});&lt;br /&gt;
      this.Text = &amp;quot;Anchoring (and Docking) Controls&amp;quot;;&lt;br /&gt;
      &lt;br /&gt;
            // dock Left&lt;br /&gt;
      button1.Dock = DockStyle.Left;&lt;br /&gt;
      button1.Text = &amp;quot;Anchor: &amp;quot; + button1.Anchor.ToString() + &lt;br /&gt;
        &amp;quot;\nDock: &amp;quot; + button1.Dock.ToString();&lt;br /&gt;
    }&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new AnchorForm());&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;
==Dock Style: None==&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 AnchorForm : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.Button button1;&lt;br /&gt;
    public AnchorForm()&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      CenterToScreen();&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.button1 = new System.Windows.Forms.Button();&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {this.button1});&lt;br /&gt;
      this.Text = &amp;quot;Anchoring (and Docking) Controls&amp;quot;;&lt;br /&gt;
      &lt;br /&gt;
      &lt;br /&gt;
            // dock None&lt;br /&gt;
      button1.Dock = DockStyle.None;&lt;br /&gt;
      button1.Text = &amp;quot;Anchor: &amp;quot; + button1.Anchor.ToString() + &amp;quot;\nDock: &amp;quot; + button1.Dock.ToString();&lt;br /&gt;
      &lt;br /&gt;
    }&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new AnchorForm());&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;
==Dock Style: Right==&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 AnchorForm : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.Button button1;&lt;br /&gt;
    public AnchorForm()&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      CenterToScreen();&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.button1 = new System.Windows.Forms.Button();&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {this.button1});&lt;br /&gt;
      this.Text = &amp;quot;Anchoring (and Docking) Controls&amp;quot;;&lt;br /&gt;
      &lt;br /&gt;
            //dock Right&lt;br /&gt;
            button1.Dock = DockStyle.Right;&lt;br /&gt;
      button1.Text = &amp;quot;Anchor: &amp;quot; + button1.Anchor.ToString() + &lt;br /&gt;
        &amp;quot;\nDock: &amp;quot; + button1.Dock.ToString();&lt;br /&gt;
    }&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new AnchorForm());&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;
==Dock Style: Top==&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 AnchorForm : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.Button button1;&lt;br /&gt;
    public AnchorForm()&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      CenterToScreen();&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.button1 = new System.Windows.Forms.Button();&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {this.button1});&lt;br /&gt;
      this.Text = &amp;quot;Anchoring (and Docking) Controls&amp;quot;;&lt;br /&gt;
      &lt;br /&gt;
            // dock Top&lt;br /&gt;
        &lt;br /&gt;
      button1.Dock = DockStyle.Top;&lt;br /&gt;
      button1.Text = &amp;quot;Anchor: &amp;quot; + button1.Anchor.ToString() + &lt;br /&gt;
        &amp;quot;\nDock: &amp;quot; + button1.Dock.ToString();&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new AnchorForm());&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;
==Dock Two Buttons==&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;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
   &lt;br /&gt;
class TwoButtonsDock: Form&lt;br /&gt;
{&lt;br /&gt;
     public static void Main()&lt;br /&gt;
     {&lt;br /&gt;
          Application.Run(new TwoButtonsDock());&lt;br /&gt;
     }&lt;br /&gt;
     public TwoButtonsDock()&lt;br /&gt;
     {&lt;br /&gt;
          ResizeRedraw = true;&lt;br /&gt;
   &lt;br /&gt;
          Button btn = new Button();&lt;br /&gt;
          btn.Parent = this;&lt;br /&gt;
          btn.Text   = &amp;quot;&amp;amp;Larger&amp;quot;;&lt;br /&gt;
          btn.Height = 2 * Font.Height;&lt;br /&gt;
          btn.Dock   = DockStyle.Top;&lt;br /&gt;
          btn.Click += new EventHandler(ButtonLargerOnClick);&lt;br /&gt;
          &lt;br /&gt;
          btn = new Button();&lt;br /&gt;
          btn.Parent = this;&lt;br /&gt;
          btn.Text   = &amp;quot;&amp;amp;Smaller&amp;quot;;&lt;br /&gt;
          btn.Height = 2 * Font.Height;&lt;br /&gt;
          btn.Dock   = DockStyle.Bottom;&lt;br /&gt;
          btn.Click += new EventHandler(ButtonSmallerOnClick);&lt;br /&gt;
     }&lt;br /&gt;
     void ButtonLargerOnClick(object obj, EventArgs ea)&lt;br /&gt;
     {&lt;br /&gt;
          Console.WriteLine(&amp;quot;large&amp;quot;);&lt;br /&gt;
     }&lt;br /&gt;
     void ButtonSmallerOnClick(object obj, EventArgs ea)&lt;br /&gt;
     {&lt;br /&gt;
          Console.WriteLine(&amp;quot;small&amp;quot;);&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>