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

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Panel&amp;diff=10&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/Panel&amp;diff=10&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/Panel&amp;diff=11&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/Panel&amp;diff=11&amp;oldid=prev"/>
				<updated>2010-05-26T11:32:27Z</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;==Panel and form dock pad==&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.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class Form1 : Form&lt;br /&gt;
{&lt;br /&gt;
  private System.Windows.Forms.GroupBox GroupBox1;&lt;br /&gt;
  private System.Windows.Forms.Button cmdUpdate;&lt;br /&gt;
  private System.Windows.Forms.NumericUpDown udDockPaddingForm;&lt;br /&gt;
  private System.Windows.Forms.NumericUpDown udDockPaddingPanel;&lt;br /&gt;
  private System.Windows.Forms.ruboBox lstDockPanel;&lt;br /&gt;
  private System.Windows.Forms.Label Label3;&lt;br /&gt;
  private System.Windows.Forms.Label Label4;&lt;br /&gt;
  private System.Windows.Forms.ruboBox lstDockTextBox;&lt;br /&gt;
  private System.Windows.Forms.Label Label2;&lt;br /&gt;
  private System.Windows.Forms.Label Label1;&lt;br /&gt;
  private System.Windows.Forms.Panel pnlDock;&lt;br /&gt;
  private System.Windows.Forms.TextBox txtDock;&lt;br /&gt;
  public Form1() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
        lstDockPanel.Items.AddRange(Enum.GetNames(Dock.GetType()));&lt;br /&gt;
      lstDockTextBox.Items.AddRange(Enum.GetNames(Dock.GetType()));&lt;br /&gt;
      lstDockPanel.Text = Enum.GetName(Dock.GetType(), pnlDock.Dock);&lt;br /&gt;
      lstDockTextBox.Text = Enum.GetName(Dock.GetType(), lstDockTextBox.Dock);&lt;br /&gt;
  }&lt;br /&gt;
  private void cmdUpdate_Click(object sender, 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;
    TypeConverter converter;&lt;br /&gt;
    converter = TypeDescriptor.GetConverter(Dock.GetType());&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;
  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.Add(this.cmdUpdate);&lt;br /&gt;
    this.GroupBox1.Controls.Add(this.udDockPaddingForm);&lt;br /&gt;
    this.GroupBox1.Controls.Add(this.udDockPaddingPanel);&lt;br /&gt;
    this.GroupBox1.Controls.Add(this.lstDockPanel);&lt;br /&gt;
    this.GroupBox1.Controls.Add(this.Label3);&lt;br /&gt;
    this.GroupBox1.Controls.Add(this.Label4);&lt;br /&gt;
    this.GroupBox1.Controls.Add(this.lstDockTextBox);&lt;br /&gt;
    this.GroupBox1.Controls.Add(this.Label2);&lt;br /&gt;
    this.GroupBox1.Controls.Add(this.Label1);&lt;br /&gt;
    this.GroupBox1.Location = new System.Drawing.Point(202, 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 = 14;&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 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 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 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.FormattingEnabled = true;&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.FormattingEnabled = true;&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;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;Form\&amp;quot;s DockPadding:&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // pnlDock&lt;br /&gt;
    // &lt;br /&gt;
    this.pnlDock.Controls.Add(this.txtDock);&lt;br /&gt;
    this.pnlDock.Dock = System.Windows.Forms.DockStyle.Left;&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, ((byte)(0)));&lt;br /&gt;
    this.pnlDock.Location = new System.Drawing.Point(0, 0);&lt;br /&gt;
    this.pnlDock.Name = &amp;quot;pnlDock&amp;quot;;&lt;br /&gt;
    this.pnlDock.Padding = new System.Windows.Forms.Padding(20);&lt;br /&gt;
    this.pnlDock.Size = new System.Drawing.Size(224, 314);&lt;br /&gt;
    this.pnlDock.TabIndex = 13;&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, ((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;This is a TextBox.&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // Form1&lt;br /&gt;
    // &lt;br /&gt;
    this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
    this.ClientSize = new System.Drawing.Size(497, 314);&lt;br /&gt;
    this.Controls.Add(this.GroupBox1);&lt;br /&gt;
    this.Controls.Add(this.pnlDock);&lt;br /&gt;
    this.Text = &amp;quot;Docking At Work&amp;quot;;&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.pnlDock.PerformLayout();&lt;br /&gt;
    this.ResumeLayout(false);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  [STAThread]&lt;br /&gt;
  static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Application.EnableVisualStyles();&lt;br /&gt;
    Application.Run(new Form1());&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;
==Scrolling Picture==&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.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class Form1 : Form {&lt;br /&gt;
    public Form1() {&lt;br /&gt;
        this.panel1 = new System.Windows.Forms.Panel();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.panel1.AutoScroll = true;&lt;br /&gt;
        this.panel1.BackgroundImage = new Bitmap(&amp;quot;yourfile.bmp&amp;quot;);&lt;br /&gt;
        this.panel1.Location = new System.Drawing.Point(13, 13);&lt;br /&gt;
        this.panel1.Size = new System.Drawing.Size(267, 243);&lt;br /&gt;
        this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);&lt;br /&gt;
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(292, 268);&lt;br /&gt;
        this.Controls.Add(this.panel1);&lt;br /&gt;
        this.Load += new System.EventHandler(this.Form1_Load);&lt;br /&gt;
        this.ResumeLayout(false);        this.panel1.AutoScrollMinSize = this.panel1.BackgroundImage.Size;&lt;br /&gt;
    }&lt;br /&gt;
    private void Form1_Load(object sender, EventArgs e) {&lt;br /&gt;
        int midX = this.panel1.AutoScrollMinSize.Width / 2;&lt;br /&gt;
        int midY = this.panel1.AutoScrollMinSize.Height / 2;&lt;br /&gt;
        int halfSizeX = this.panel1.Size.Width / 2;&lt;br /&gt;
        int halfSizeY = this.panel1.Size.Height / 2;&lt;br /&gt;
        int startPosX = midX - halfSizeX;&lt;br /&gt;
        if (startPosX &amp;lt; 0) startPosX = 0;&lt;br /&gt;
        int startPosY = midY - halfSizeY;&lt;br /&gt;
        if (startPosY &amp;lt; 0) startPosY = 0;&lt;br /&gt;
        this.panel1.AutoScrollPosition = new Point(startPosX, startPosY);&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.Panel panel1;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() {&lt;br /&gt;
        Application.EnableVisualStyles();&lt;br /&gt;
        Application.Run(new Form1());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Split Container(Panel): Collapsed==&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.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class Form1 : Form&lt;br /&gt;
{&lt;br /&gt;
  private System.Windows.Forms.SplitContainer splitContainer1;&lt;br /&gt;
  private System.Windows.Forms.SplitContainer splitContainer2;&lt;br /&gt;
  private System.Windows.Forms.WebBrowser webBrowser1;&lt;br /&gt;
  private System.Windows.Forms.TextBox TextBox1;&lt;br /&gt;
  private System.Windows.Forms.Panel pnlFileList;&lt;br /&gt;
  private System.Windows.Forms.Button cmdHide;&lt;br /&gt;
  private System.Windows.Forms.ListView ListView1;&lt;br /&gt;
  private System.Windows.Forms.ColumnHeader ColumnHeader1;&lt;br /&gt;
  private System.Windows.Forms.Panel pnlShow;&lt;br /&gt;
  private System.Windows.Forms.Button cmdShow;&lt;br /&gt;
  public Form1() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
        ListView1.Items.Add(&amp;quot;A&amp;quot;);&lt;br /&gt;
        ListView1.Items.Add(&amp;quot;B&amp;quot;);&lt;br /&gt;
        ListView1.Items.Add(&amp;quot;C&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  private void cmdHide_Click(object sender, EventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    splitContainer1.Panel1Collapsed = true;&lt;br /&gt;
    pnlShow.Visible = true;&lt;br /&gt;
  }&lt;br /&gt;
  private void cmdShow_Click(object sender, EventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    splitContainer1.Panel1Collapsed = false;&lt;br /&gt;
    pnlShow.Visible = false;&lt;br /&gt;
    &lt;br /&gt;
  }&lt;br /&gt;
  private void InitializeComponent()&lt;br /&gt;
  {&lt;br /&gt;
        this.splitContainer1 = new System.Windows.Forms.SplitContainer();&lt;br /&gt;
        this.pnlFileList = new System.Windows.Forms.Panel();&lt;br /&gt;
        this.cmdHide = new System.Windows.Forms.Button();&lt;br /&gt;
        this.ListView1 = new System.Windows.Forms.ListView();&lt;br /&gt;
        this.ColumnHeader1 = new System.Windows.Forms.ColumnHeader();&lt;br /&gt;
        this.splitContainer2 = new System.Windows.Forms.SplitContainer();&lt;br /&gt;
        this.webBrowser1 = new System.Windows.Forms.WebBrowser();&lt;br /&gt;
        this.TextBox1 = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.pnlShow = new System.Windows.Forms.Panel();&lt;br /&gt;
        this.cmdShow = new System.Windows.Forms.Button();&lt;br /&gt;
        this.splitContainer1.Panel1.SuspendLayout();&lt;br /&gt;
        this.splitContainer1.Panel2.SuspendLayout();&lt;br /&gt;
        this.splitContainer1.SuspendLayout();&lt;br /&gt;
        this.pnlFileList.SuspendLayout();&lt;br /&gt;
        this.splitContainer2.Panel1.SuspendLayout();&lt;br /&gt;
        this.splitContainer2.Panel2.SuspendLayout();&lt;br /&gt;
        this.splitContainer2.SuspendLayout();&lt;br /&gt;
        this.pnlShow.SuspendLayout();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        // &lt;br /&gt;
        // splitContainer1&lt;br /&gt;
        // &lt;br /&gt;
        this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;&lt;br /&gt;
        this.splitContainer1.Location = new System.Drawing.Point(29, 10);&lt;br /&gt;
        this.splitContainer1.Name = &amp;quot;splitContainer1&amp;quot;;&lt;br /&gt;
        // &lt;br /&gt;
        // splitContainer1.Panel1&lt;br /&gt;
        // &lt;br /&gt;
        this.splitContainer1.Panel1.Controls.Add(this.pnlFileList);&lt;br /&gt;
        this.splitContainer1.Panel1MinSize = 50;&lt;br /&gt;
        // &lt;br /&gt;
        // splitContainer1.Panel2&lt;br /&gt;
        // &lt;br /&gt;
        this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);&lt;br /&gt;
        this.splitContainer1.Size = new System.Drawing.Size(477, 366);&lt;br /&gt;
        this.splitContainer1.SplitterDistance = 155;&lt;br /&gt;
        this.splitContainer1.TabIndex = 0;&lt;br /&gt;
        this.splitContainer1.Text = &amp;quot;splitContainer1&amp;quot;;&lt;br /&gt;
        // &lt;br /&gt;
        // pnlFileList&lt;br /&gt;
        // &lt;br /&gt;
        this.pnlFileList.Controls.Add(this.cmdHide);&lt;br /&gt;
        this.pnlFileList.Controls.Add(this.ListView1);&lt;br /&gt;
        this.pnlFileList.Dock = System.Windows.Forms.DockStyle.Fill;&lt;br /&gt;
        this.pnlFileList.Location = new System.Drawing.Point(0, 0);&lt;br /&gt;
        this.pnlFileList.Name = &amp;quot;pnlFileList&amp;quot;;&lt;br /&gt;
        this.pnlFileList.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);&lt;br /&gt;
        this.pnlFileList.Size = new System.Drawing.Size(155, 366);&lt;br /&gt;
        this.pnlFileList.TabIndex = 21;&lt;br /&gt;
        // &lt;br /&gt;
        // cmdHide&lt;br /&gt;
        // &lt;br /&gt;
        this.cmdHide.Dock = System.Windows.Forms.DockStyle.Bottom;&lt;br /&gt;
        this.cmdHide.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
        this.cmdHide.Location = new System.Drawing.Point(0, 346);&lt;br /&gt;
        this.cmdHide.Name = &amp;quot;cmdHide&amp;quot;;&lt;br /&gt;
        this.cmdHide.Size = new System.Drawing.Size(154, 20);&lt;br /&gt;
        this.cmdHide.TabIndex = 23;&lt;br /&gt;
        this.cmdHide.Text = &amp;quot;&amp;lt;&amp;lt; Hide&amp;quot;;&lt;br /&gt;
        this.cmdHide.Click += new System.EventHandler(this.cmdHide_Click);&lt;br /&gt;
        // &lt;br /&gt;
        // ListView1&lt;br /&gt;
        // &lt;br /&gt;
        this.ListView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)&lt;br /&gt;
                    | System.Windows.Forms.AnchorStyles.Left)&lt;br /&gt;
                    | System.Windows.Forms.AnchorStyles.Right)));&lt;br /&gt;
        this.ListView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {&lt;br /&gt;
        this.ColumnHeader1});&lt;br /&gt;
        this.ListView1.Location = new System.Drawing.Point(0, 3);&lt;br /&gt;
        this.ListView1.Name = &amp;quot;ListView1&amp;quot;;&lt;br /&gt;
        this.ListView1.Size = new System.Drawing.Size(152, 337);&lt;br /&gt;
        this.ListView1.TabIndex = 22;&lt;br /&gt;
        this.ListView1.UseCompatibleStateImageBehavior = false;&lt;br /&gt;
        this.ListView1.View = System.Windows.Forms.View.Details;&lt;br /&gt;
        // &lt;br /&gt;
        // ColumnHeader1&lt;br /&gt;
        // &lt;br /&gt;
        this.ColumnHeader1.Name = &amp;quot;ColumnHeader1&amp;quot;;&lt;br /&gt;
        this.ColumnHeader1.Text = &amp;quot;File&amp;quot;;&lt;br /&gt;
        this.ColumnHeader1.Width = 99;&lt;br /&gt;
        // &lt;br /&gt;
        // splitContainer2&lt;br /&gt;
        // &lt;br /&gt;
        this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;&lt;br /&gt;
        this.splitContainer2.Location = new System.Drawing.Point(0, 0);&lt;br /&gt;
        this.splitContainer2.Name = &amp;quot;splitContainer2&amp;quot;;&lt;br /&gt;
        this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;&lt;br /&gt;
        // &lt;br /&gt;
        // splitContainer2.Panel1&lt;br /&gt;
        // &lt;br /&gt;
        this.splitContainer2.Panel1.Controls.Add(this.webBrowser1);&lt;br /&gt;
        // &lt;br /&gt;
        // splitContainer2.Panel2&lt;br /&gt;
        // &lt;br /&gt;
        this.splitContainer2.Panel2.Controls.Add(this.TextBox1);&lt;br /&gt;
        this.splitContainer2.Size = new System.Drawing.Size(318, 366);&lt;br /&gt;
        this.splitContainer2.SplitterDistance = 173;&lt;br /&gt;
        this.splitContainer2.TabIndex = 0;&lt;br /&gt;
        this.splitContainer2.Text = &amp;quot;splitContainer2&amp;quot;;&lt;br /&gt;
        // &lt;br /&gt;
        // webBrowser1&lt;br /&gt;
        // &lt;br /&gt;
        this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;&lt;br /&gt;
        this.webBrowser1.Location = new System.Drawing.Point(0, 0);&lt;br /&gt;
        this.webBrowser1.Name = &amp;quot;webBrowser1&amp;quot;;&lt;br /&gt;
        this.webBrowser1.Size = new System.Drawing.Size(318, 173);&lt;br /&gt;
        this.webBrowser1.TabIndex = 0;&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.Location = new System.Drawing.Point(0, 0);&lt;br /&gt;
        this.TextBox1.Multiline = true;&lt;br /&gt;
        this.TextBox1.Name = &amp;quot;TextBox1&amp;quot;;&lt;br /&gt;
        this.TextBox1.ReadOnly = true;&lt;br /&gt;
        this.TextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;&lt;br /&gt;
        this.TextBox1.Size = new System.Drawing.Size(318, 189);&lt;br /&gt;
        this.TextBox1.TabIndex = 1;&lt;br /&gt;
        // &lt;br /&gt;
        // pnlShow&lt;br /&gt;
        // &lt;br /&gt;
        this.pnlShow.Controls.Add(this.cmdShow);&lt;br /&gt;
        this.pnlShow.Dock = System.Windows.Forms.DockStyle.Left;&lt;br /&gt;
        this.pnlShow.Location = new System.Drawing.Point(10, 10);&lt;br /&gt;
        this.pnlShow.Name = &amp;quot;pnlShow&amp;quot;;&lt;br /&gt;
        this.pnlShow.Padding = new System.Windows.Forms.Padding(0, 0, 3, 0);&lt;br /&gt;
        this.pnlShow.Size = new System.Drawing.Size(19, 366);&lt;br /&gt;
        this.pnlShow.TabIndex = 23;&lt;br /&gt;
        this.pnlShow.Visible = false;&lt;br /&gt;
        // &lt;br /&gt;
        // cmdShow&lt;br /&gt;
        // &lt;br /&gt;
        this.cmdShow.Dock = System.Windows.Forms.DockStyle.Fill;&lt;br /&gt;
        this.cmdShow.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
        this.cmdShow.Font = new System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));&lt;br /&gt;
        this.cmdShow.Location = new System.Drawing.Point(0, 0);&lt;br /&gt;
        this.cmdShow.Name = &amp;quot;cmdShow&amp;quot;;&lt;br /&gt;
        this.cmdShow.Size = new System.Drawing.Size(16, 366);&lt;br /&gt;
        this.cmdShow.TabIndex = 21;&lt;br /&gt;
        this.cmdShow.Text = &amp;quot;&amp;gt;&amp;quot;;&lt;br /&gt;
        this.cmdShow.Click += new System.EventHandler(this.cmdShow_Click);&lt;br /&gt;
        // &lt;br /&gt;
        // Form1&lt;br /&gt;
        // &lt;br /&gt;
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(516, 386);&lt;br /&gt;
        this.Controls.Add(this.splitContainer1);&lt;br /&gt;
        this.Controls.Add(this.pnlShow);&lt;br /&gt;
        this.Font = new System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));&lt;br /&gt;
        this.Name = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
        this.Padding = new System.Windows.Forms.Padding(10);&lt;br /&gt;
        this.Text = &amp;quot;Split Window&amp;quot;;&lt;br /&gt;
        this.splitContainer1.Panel1.ResumeLayout(false);&lt;br /&gt;
        this.splitContainer1.Panel2.ResumeLayout(false);&lt;br /&gt;
        this.splitContainer1.ResumeLayout(false);&lt;br /&gt;
        this.pnlFileList.ResumeLayout(false);&lt;br /&gt;
        this.splitContainer2.Panel1.ResumeLayout(false);&lt;br /&gt;
        this.splitContainer2.Panel2.ResumeLayout(false);&lt;br /&gt;
        this.splitContainer2.Panel2.PerformLayout();&lt;br /&gt;
        this.splitContainer2.ResumeLayout(false);&lt;br /&gt;
        this.pnlShow.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.EnableVisualStyles();&lt;br /&gt;
    Application.Run(new Form1());&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;
==Subclass Panel==&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.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class ScrollingText : System.Windows.Forms.Panel {&lt;br /&gt;
    Font textFont = new Font(&amp;quot;Times New Roman&amp;quot;, 24);&lt;br /&gt;
    public ScrollingText() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
    }&lt;br /&gt;
    private void ScrollingText_Paint(object sender, PaintEventArgs e) {&lt;br /&gt;
        Graphics g = e.Graphics;&lt;br /&gt;
        g.TranslateTransform(this.AutoScrollPosition.X, this.AutoScrollPosition.Y);&lt;br /&gt;
        g.DrawString(&amp;quot;Hello, World&amp;quot;, textFont, Brushes.Black, 40, 40);&lt;br /&gt;
        g.DrawString(&amp;quot;Hello, World&amp;quot;, textFont, Brushes.Red, 40, 240);&lt;br /&gt;
        g.DrawString(&amp;quot;Hello, World&amp;quot;, textFont, Brushes.Blue, 350, 40);&lt;br /&gt;
        g.DrawString(&amp;quot;Hello, World&amp;quot;, textFont, Brushes.Green, 350, 240);&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent() {&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.AutoScroll = true;&lt;br /&gt;
        this.AutoScrollMinSize = new System.Drawing.Size(600, 400);&lt;br /&gt;
        this.BackColor = System.Drawing.SystemColors.Window;&lt;br /&gt;
        this.Paint += new System.Windows.Forms.PaintEventHandler(this.ScrollingText_Paint);&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
public class Form1 : Form {&lt;br /&gt;
    public Form1() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent() {&lt;br /&gt;
        this.scrollingText1 = new ScrollingText();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.scrollingText1.AutoScroll = true;&lt;br /&gt;
        this.scrollingText1.AutoScrollMinSize = new System.Drawing.Size(600, 400);&lt;br /&gt;
        this.scrollingText1.BackColor = System.Drawing.SystemColors.Window;&lt;br /&gt;
        this.scrollingText1.Location = new System.Drawing.Point(13, 13);&lt;br /&gt;
        this.scrollingText1.Size = new System.Drawing.Size(267, 243);&lt;br /&gt;
        this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);&lt;br /&gt;
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(292, 268);&lt;br /&gt;
        this.Controls.Add(this.scrollingText1);&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
    private ScrollingText scrollingText1;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() {&lt;br /&gt;
        Application.EnableVisualStyles();&lt;br /&gt;
        Application.Run(new Form1());&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>