<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_by_API%2FSystem.Windows.Forms%2FPanel</id>
		<title>VB.Net by API/System.Windows.Forms/Panel - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_by_API%2FSystem.Windows.Forms%2FPanel"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Windows.Forms/Panel&amp;action=history"/>
		<updated>2026-04-06T01:16:12Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Windows.Forms/Panel&amp;diff=2639&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Windows.Forms/Panel&amp;diff=2639&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:16Z</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;Версия 16:40, 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://www.vbex.ru/index.php?title=VB.Net_by_API/System.Windows.Forms/Panel&amp;diff=2640&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Windows.Forms/Panel&amp;diff=2640&amp;oldid=prev"/>
				<updated>2010-05-26T12:51: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;==Panel.AutoScroll==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;  &lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.ruponentModel&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.IO&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    &lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim form1 As Form = New Form1&lt;br /&gt;
        Application.Run(form1)&lt;br /&gt;
&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents Panel1 As System.Windows.Forms.Panel&lt;br /&gt;
    Friend WithEvents Button6 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents Button5 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents Button4 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents Button3 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents Button2 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents Button1 As System.Windows.Forms.Button&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.Panel1 = New System.Windows.Forms.Panel()&lt;br /&gt;
        Me.Button6 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.Button5 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.Button4 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.Button3 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.Button2 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.Button1 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.Panel1.SuspendLayout()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Panel1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Panel1.Anchor = (((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Left) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Right)&lt;br /&gt;
        Me.Panel1.AutoScroll = True&lt;br /&gt;
        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D&lt;br /&gt;
        Me.Panel1.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button6, Me.Button5, Me.Button4, Me.Button3, Me.Button2, Me.Button1})&lt;br /&gt;
        Me.Panel1.Location = New System.Drawing.Point(8, 8)&lt;br /&gt;
        Me.Panel1.Name = &amp;quot;Panel1&amp;quot;&lt;br /&gt;
        Me.Panel1.Size = New System.Drawing.Size(284, 172)&lt;br /&gt;
        Me.Panel1.TabIndex = 1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button6&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button6.FlatStyle = System.Windows.Forms.FlatStyle.System&lt;br /&gt;
        Me.Button6.Location = New System.Drawing.Point(16, 180)&lt;br /&gt;
        Me.Button6.Name = &amp;quot;Button6&amp;quot;&lt;br /&gt;
        Me.Button6.Size = New System.Drawing.Size(168, 24)&lt;br /&gt;
        Me.Button6.TabIndex = 5&lt;br /&gt;
        Me.Button6.Text = &amp;quot;Button6&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button5&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button5.FlatStyle = System.Windows.Forms.FlatStyle.System&lt;br /&gt;
        Me.Button5.Location = New System.Drawing.Point(16, 148)&lt;br /&gt;
        Me.Button5.Name = &amp;quot;Button5&amp;quot;&lt;br /&gt;
        Me.Button5.Size = New System.Drawing.Size(168, 24)&lt;br /&gt;
        Me.Button5.TabIndex = 4&lt;br /&gt;
        Me.Button5.Text = &amp;quot;Button5&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button4&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button4.FlatStyle = System.Windows.Forms.FlatStyle.System&lt;br /&gt;
        Me.Button4.Location = New System.Drawing.Point(16, 116)&lt;br /&gt;
        Me.Button4.Name = &amp;quot;Button4&amp;quot;&lt;br /&gt;
        Me.Button4.Size = New System.Drawing.Size(168, 24)&lt;br /&gt;
        Me.Button4.TabIndex = 3&lt;br /&gt;
        Me.Button4.Text = &amp;quot;Button4&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button3.FlatStyle = System.Windows.Forms.FlatStyle.System&lt;br /&gt;
        Me.Button3.Location = New System.Drawing.Point(16, 84)&lt;br /&gt;
        Me.Button3.Name = &amp;quot;Button3&amp;quot;&lt;br /&gt;
        Me.Button3.Size = New System.Drawing.Size(168, 24)&lt;br /&gt;
        Me.Button3.TabIndex = 2&lt;br /&gt;
        Me.Button3.Text = &amp;quot;Button3&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button2.FlatStyle = System.Windows.Forms.FlatStyle.System&lt;br /&gt;
        Me.Button2.Location = New System.Drawing.Point(16, 52)&lt;br /&gt;
        Me.Button2.Name = &amp;quot;Button2&amp;quot;&lt;br /&gt;
        Me.Button2.Size = New System.Drawing.Size(168, 24)&lt;br /&gt;
        Me.Button2.TabIndex = 1&lt;br /&gt;
        Me.Button2.Text = &amp;quot;Button2&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button1.FlatStyle = System.Windows.Forms.FlatStyle.System&lt;br /&gt;
        Me.Button1.Location = New System.Drawing.Point(16, 20)&lt;br /&gt;
        Me.Button1.Name = &amp;quot;Button1&amp;quot;&lt;br /&gt;
        Me.Button1.Size = New System.Drawing.Size(168, 24)&lt;br /&gt;
        Me.Button1.TabIndex = 0&lt;br /&gt;
        Me.Button1.Text = &amp;quot;Button1&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;ScrollablePanel&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 14)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(300, 186)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Panel1})&lt;br /&gt;
        Me.Font = New System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.Name = &amp;quot;ScrollablePanel&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Scrollable Panel&amp;quot;&lt;br /&gt;
        Me.Panel1.ResumeLayout(False)&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
End Class&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Panel.BorderStyle==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;  &lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class PanelInAction&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox&lt;br /&gt;
    Friend WithEvents Label1 As System.Windows.Forms.Label&lt;br /&gt;
&lt;br /&gt;
    Dim Panel1 As New Panel&lt;br /&gt;
    Dim Panel2 As New Panel&lt;br /&gt;
    Dim WithEvents RadioButton1 As New RadioButton&lt;br /&gt;
    Dim WithEvents RadioButton2 As New RadioButton&lt;br /&gt;
    Dim WithEvents RadioButton3 As New RadioButton&lt;br /&gt;
    Dim WithEvents RadioButton4 As New RadioButton&lt;br /&gt;
    Dim WithEvents RadioButton5 As New RadioButton&lt;br /&gt;
    Dim WithEvents RadioButton6 As New RadioButton&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        Me.TextBox1 = New System.Windows.Forms.TextBox&lt;br /&gt;
        Me.Label1 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        Me.TextBox1.Location = New System.Drawing.Point(8, 200)&lt;br /&gt;
        Me.TextBox1.Name = &amp;quot;TextBox1&amp;quot;&lt;br /&gt;
        Me.TextBox1.Size = New System.Drawing.Size(272, 20)&lt;br /&gt;
        Me.TextBox1.TabIndex = 0&lt;br /&gt;
        Me.TextBox1.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(292, 273)&lt;br /&gt;
        Me.Controls.Add(Me.Label1)&lt;br /&gt;
        Me.Controls.Add(Me.TextBox1)&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
&lt;br /&gt;
        Panel1.Location = New Point(20, 60)&lt;br /&gt;
        Panel1.Size = New Size(110, 100)&lt;br /&gt;
        Panel1.BorderStyle = BorderStyle.FixedSingle&lt;br /&gt;
        Panel2.Location = New Point(140, 60)&lt;br /&gt;
        Panel2.Size = New Size(110, 100)&lt;br /&gt;
        Panel2.BorderStyle = BorderStyle.FixedSingle&lt;br /&gt;
        RadioButton1.Location = New Point(6, 16)&lt;br /&gt;
        RadioButton1.Text = &amp;quot;Radio Button 1&amp;quot;&lt;br /&gt;
        RadioButton1.Size = New Size(120, 16)&lt;br /&gt;
        RadioButton2.Location = New Point(6, 36)&lt;br /&gt;
        RadioButton2.Text = &amp;quot;Radio Button 2&amp;quot;&lt;br /&gt;
        RadioButton2.Size = New Size(120, 20)&lt;br /&gt;
        RadioButton3.Location = New Point(6, 56)&lt;br /&gt;
        RadioButton3.Text = &amp;quot;Radio Button 3&amp;quot;&lt;br /&gt;
        RadioButton3.Size = New Size(120, 20)&lt;br /&gt;
        RadioButton4.Location = New Point(6, 16)&lt;br /&gt;
        RadioButton4.Text = &amp;quot;Radio Button 4&amp;quot;&lt;br /&gt;
        RadioButton4.Size = New Size(120, 16)&lt;br /&gt;
        RadioButton5.Location = New Point(6, 36)&lt;br /&gt;
        RadioButton5.Text = &amp;quot;Radio Button 5&amp;quot;&lt;br /&gt;
        RadioButton5.Size = New Size(120, 20)&lt;br /&gt;
        RadioButton6.Location = New Point(6, 56)&lt;br /&gt;
        RadioButton6.Text = &amp;quot;Radio Button 6&amp;quot;&lt;br /&gt;
        RadioButton6.Size = New Size(120, 20)&lt;br /&gt;
        Panel1.Controls.Add(RadioButton1)&lt;br /&gt;
        Panel1.Controls.Add(RadioButton2)&lt;br /&gt;
        Panel1.Controls.Add(RadioButton3)&lt;br /&gt;
        Panel2.Controls.Add(RadioButton4)&lt;br /&gt;
        Panel2.Controls.Add(RadioButton5)&lt;br /&gt;
        Panel2.Controls.Add(RadioButton6)&lt;br /&gt;
        Controls.Add(Panel1)&lt;br /&gt;
        Controls.Add(Panel2)&lt;br /&gt;
        AddHandler RadioButton1.CheckedChanged, AddressOf _&lt;br /&gt;
            RadioButton1_CheckedChanged&lt;br /&gt;
        AddHandler RadioButton2.CheckedChanged, AddressOf _&lt;br /&gt;
            RadioButton2_CheckedChanged&lt;br /&gt;
        AddHandler RadioButton3.CheckedChanged, AddressOf _&lt;br /&gt;
            RadioButton3_CheckedChanged&lt;br /&gt;
        AddHandler RadioButton4.CheckedChanged, AddressOf _&lt;br /&gt;
            RadioButton4_CheckedChanged&lt;br /&gt;
        AddHandler RadioButton5.CheckedChanged, AddressOf _&lt;br /&gt;
            RadioButton5_CheckedChanged&lt;br /&gt;
        AddHandler RadioButton6.CheckedChanged, AddressOf _&lt;br /&gt;
            RadioButton6_CheckedChanged&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub RadioButton1_CheckedChanged(ByVal sender As _&lt;br /&gt;
        System.Object, ByVal e As System.EventArgs) &lt;br /&gt;
        TextBox1.Text = &amp;quot;You clicked radio button 1&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub RadioButton2_CheckedChanged(ByVal sender As _&lt;br /&gt;
        System.Object, ByVal e As System.EventArgs) &lt;br /&gt;
        TextBox1.Text = &amp;quot;You clicked radio button 2&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub RadioButton3_CheckedChanged(ByVal sender As _&lt;br /&gt;
        System.Object, ByVal e As System.EventArgs) &lt;br /&gt;
        TextBox1.Text = &amp;quot;You clicked radio button 3&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub RadioButton4_CheckedChanged(ByVal sender As _&lt;br /&gt;
        System.Object, ByVal e As System.EventArgs) &lt;br /&gt;
        TextBox1.Text = &amp;quot;You clicked radio button 4&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub RadioButton5_CheckedChanged(ByVal sender As _&lt;br /&gt;
        System.Object, ByVal e As System.EventArgs) &lt;br /&gt;
        TextBox1.Text = &amp;quot;You clicked radio button 5&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub RadioButton6_CheckedChanged(ByVal sender As _&lt;br /&gt;
        System.Object, ByVal e As System.EventArgs) &lt;br /&gt;
        TextBox1.Text = &amp;quot;You clicked radio button 6&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Panel.Controls.Add==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Printing&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    &lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
       Dim form1 As Form = New Form1&lt;br /&gt;
       Application.Run(form1)    &lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Private Sub btnScroll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnScroll.Click&lt;br /&gt;
        Panel1.AutoScrollPosition = New Point(Integer.Parse(txtX.Text), Integer.Parse(txtY.Text))&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Global.Microsoft.VisualBasic.rupilerServices.DesignerGenerated()&amp;gt; _&lt;br /&gt;
Partial Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerNonUserCode()&amp;gt; _&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing AndAlso components IsNot Nothing Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; _&lt;br /&gt;
    Private Sub InitializeComponent()&lt;br /&gt;
        Me.Panel1 = New System.Windows.Forms.Panel&lt;br /&gt;
        Me.Label1 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.Label2 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.Label3 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.txtX = New System.Windows.Forms.TextBox&lt;br /&gt;
        Me.txtY = New System.Windows.Forms.TextBox&lt;br /&gt;
        Me.btnScroll = New System.Windows.Forms.Button&lt;br /&gt;
        Me.Label4 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.Label5 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.Panel1.SuspendLayout()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Panel1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Panel1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Left) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)&lt;br /&gt;
        Me.Panel1.AutoScroll = True&lt;br /&gt;
        Me.Panel1.Controls.Add(Me.Label5)&lt;br /&gt;
        Me.Panel1.Controls.Add(Me.Label4)&lt;br /&gt;
        Me.Panel1.Controls.Add(Me.Label2)&lt;br /&gt;
        Me.Panel1.Controls.Add(Me.Label1)&lt;br /&gt;
        Me.Panel1.Location = New System.Drawing.Point(8, 8)&lt;br /&gt;
        Me.Panel1.Name = &amp;quot;Panel1&amp;quot;&lt;br /&gt;
        Me.Panel1.Size = New System.Drawing.Size(272, 216)&lt;br /&gt;
        Me.Panel1.TabIndex = 0&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label1.AutoSize = True&lt;br /&gt;
        Me.Label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D&lt;br /&gt;
        Me.Label1.Location = New System.Drawing.Point(0, 0)&lt;br /&gt;
        Me.Label1.Name = &amp;quot;Label1&amp;quot;&lt;br /&gt;
        Me.Label1.Size = New System.Drawing.Size(29, 15)&lt;br /&gt;
        Me.Label1.TabIndex = 0&lt;br /&gt;
        Me.Label1.Text = &amp;quot;(0, 0)&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label2.AutoSize = True&lt;br /&gt;
        Me.Label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D&lt;br /&gt;
        Me.Label2.Location = New System.Drawing.Point(200, 200)&lt;br /&gt;
        Me.Label2.Name = &amp;quot;Label2&amp;quot;&lt;br /&gt;
        Me.Label2.Size = New System.Drawing.Size(53, 15)&lt;br /&gt;
        Me.Label2.TabIndex = 1&lt;br /&gt;
        Me.Label2.Text = &amp;quot;(200, 200)&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label3.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)&lt;br /&gt;
        Me.Label3.AutoSize = True&lt;br /&gt;
        Me.Label3.Location = New System.Drawing.Point(0, 232)&lt;br /&gt;
        Me.Label3.Name = &amp;quot;Label3&amp;quot;&lt;br /&gt;
        Me.Label3.Size = New System.Drawing.Size(44, 13)&lt;br /&gt;
        Me.Label3.TabIndex = 1&lt;br /&gt;
        Me.Label3.Text = &amp;quot;Scroll to:&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;txtX&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.txtX.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)&lt;br /&gt;
        Me.txtX.Location = New System.Drawing.Point(48, 232)&lt;br /&gt;
        Me.txtX.Name = &amp;quot;txtX&amp;quot;&lt;br /&gt;
        Me.txtX.Size = New System.Drawing.Size(24, 20)&lt;br /&gt;
        Me.txtX.TabIndex = 2&lt;br /&gt;
        Me.txtX.Text = &amp;quot;50&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;txtY&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.txtY.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)&lt;br /&gt;
        Me.txtY.Location = New System.Drawing.Point(72, 232)&lt;br /&gt;
        Me.txtY.Name = &amp;quot;txtY&amp;quot;&lt;br /&gt;
        Me.txtY.Size = New System.Drawing.Size(24, 20)&lt;br /&gt;
        Me.txtY.TabIndex = 3&lt;br /&gt;
        Me.txtY.Text = &amp;quot;50&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;btnScroll&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.btnScroll.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)&lt;br /&gt;
        Me.btnScroll.Location = New System.Drawing.Point(96, 232)&lt;br /&gt;
        Me.btnScroll.Name = &amp;quot;btnScroll&amp;quot;&lt;br /&gt;
        Me.btnScroll.Size = New System.Drawing.Size(72, 24)&lt;br /&gt;
        Me.btnScroll.TabIndex = 4&lt;br /&gt;
        Me.btnScroll.Text = &amp;quot;Scroll&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label4&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label4.AutoSize = True&lt;br /&gt;
        Me.Label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D&lt;br /&gt;
        Me.Label4.Location = New System.Drawing.Point(50, 50)&lt;br /&gt;
        Me.Label4.Name = &amp;quot;Label4&amp;quot;&lt;br /&gt;
        Me.Label4.Size = New System.Drawing.Size(41, 15)&lt;br /&gt;
        Me.Label4.TabIndex = 2&lt;br /&gt;
        Me.Label4.Text = &amp;quot;(50, 50)&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label5&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label5.AutoSize = True&lt;br /&gt;
        Me.Label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D&lt;br /&gt;
        Me.Label5.Location = New System.Drawing.Point(100, 100)&lt;br /&gt;
        Me.Label5.Name = &amp;quot;Label5&amp;quot;&lt;br /&gt;
        Me.Label5.Size = New System.Drawing.Size(53, 15)&lt;br /&gt;
        Me.Label5.TabIndex = 3&lt;br /&gt;
        Me.Label5.Text = &amp;quot;(100, 100)&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)&lt;br /&gt;
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(289, 256)&lt;br /&gt;
        Me.Controls.Add(Me.btnScroll)&lt;br /&gt;
        Me.Controls.Add(Me.txtY)&lt;br /&gt;
        Me.Controls.Add(Me.txtX)&lt;br /&gt;
        Me.Controls.Add(Me.Label3)&lt;br /&gt;
        Me.Controls.Add(Me.Panel1)&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;UsePanel&amp;quot;&lt;br /&gt;
        Me.Panel1.ResumeLayout(False)&lt;br /&gt;
        Me.Panel1.PerformLayout()&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
        Me.PerformLayout()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents Panel1 As System.Windows.Forms.Panel&lt;br /&gt;
    Friend WithEvents Label2 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents Label1 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents Label3 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents txtX As System.Windows.Forms.TextBox&lt;br /&gt;
    Friend WithEvents txtY As System.Windows.Forms.TextBox&lt;br /&gt;
    Friend WithEvents btnScroll As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents Label5 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents Label4 As System.Windows.Forms.Label&lt;br /&gt;
End Class&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Panel.Refresh()==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;  &lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Imports System.ruponentModel&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Configuration&lt;br /&gt;
Imports System.Resources&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Drawing.Imaging&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New PanningForm()&lt;br /&gt;
        Application.Run(myform)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
Public Class PanningForm&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents upButton As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents panel1 As System.Windows.Forms.Panel&lt;br /&gt;
    Friend WithEvents downButton As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents leftButton As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents rightButton As System.Windows.Forms.Button&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.upButton = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.panel1 = New System.Windows.Forms.Panel()&lt;br /&gt;
        Me.downButton = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.leftButton = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.rightButton = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;upButton&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.upButton.Anchor = System.Windows.Forms.AnchorStyles.Top&lt;br /&gt;
        Me.upButton.Location = New System.Drawing.Point(132, 10)&lt;br /&gt;
        Me.upButton.Name = &amp;quot;upButton&amp;quot;&lt;br /&gt;
        Me.upButton.Size = New System.Drawing.Size(24, 23)&lt;br /&gt;
        Me.upButton.TabIndex = 5&lt;br /&gt;
        Me.upButton.Text = &amp;quot;^&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;panel1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.panel1.Anchor = (((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Left) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Right)&lt;br /&gt;
        Me.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle&lt;br /&gt;
        Me.panel1.Location = New System.Drawing.Point(36, 43)&lt;br /&gt;
        Me.panel1.Name = &amp;quot;panel1&amp;quot;&lt;br /&gt;
        Me.panel1.Size = New System.Drawing.Size(216, 184)&lt;br /&gt;
        Me.panel1.TabIndex = 2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;downButton&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.downButton.Anchor = System.Windows.Forms.AnchorStyles.Bottom&lt;br /&gt;
        Me.downButton.Location = New System.Drawing.Point(132, 234)&lt;br /&gt;
        Me.downButton.Name = &amp;quot;downButton&amp;quot;&lt;br /&gt;
        Me.downButton.Size = New System.Drawing.Size(24, 23)&lt;br /&gt;
        Me.downButton.TabIndex = 6&lt;br /&gt;
        Me.downButton.Text = &amp;quot;v&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;leftButton&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.leftButton.Anchor = System.Windows.Forms.AnchorStyles.Left&lt;br /&gt;
        Me.leftButton.Location = New System.Drawing.Point(6, 124)&lt;br /&gt;
        Me.leftButton.Name = &amp;quot;leftButton&amp;quot;&lt;br /&gt;
        Me.leftButton.Size = New System.Drawing.Size(24, 23)&lt;br /&gt;
        Me.leftButton.TabIndex = 3&lt;br /&gt;
        Me.leftButton.Text = &amp;quot;&amp;lt;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;rightButton&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.rightButton.Anchor = System.Windows.Forms.AnchorStyles.Right&lt;br /&gt;
        Me.rightButton.Location = New System.Drawing.Point(262, 124)&lt;br /&gt;
        Me.rightButton.Name = &amp;quot;rightButton&amp;quot;&lt;br /&gt;
        Me.rightButton.Size = New System.Drawing.Size(24, 23)&lt;br /&gt;
        Me.rightButton.TabIndex = 4&lt;br /&gt;
        Me.rightButton.Text = &amp;quot;&amp;gt;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;PanningForm&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(292, 266)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.upButton, Me.panel1, Me.downButton, Me.leftButton, Me.rightButton})&lt;br /&gt;
        Me.Name = &amp;quot;PanningForm&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;PanningForm&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Dim bmp As Bitmap = New Bitmap(&amp;quot;figure2.bmp&amp;quot;)&lt;br /&gt;
    Dim offset As Size = New Size(0, 0)&lt;br /&gt;
    Private Sub panel1_Paint(ByVal sender As Object, ByVal e As PaintEventArgs) Handles panel1.Paint&lt;br /&gt;
        Dim g As Graphics = e.Graphics&lt;br /&gt;
        Dim destRect As Rectangle = Me.panel1.ClientRectangle&lt;br /&gt;
        Dim srcRect As Rectangle = New Rectangle(offset.Width, offset.Height, destRect.Width, destRect.Height)&lt;br /&gt;
        g.DrawImage(bmp, destRect, srcRect, g.PageUnit)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub upButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles upButton.Click&lt;br /&gt;
        offset.Height = offset.Height + 10&lt;br /&gt;
        panel1.Refresh()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub downButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles downButton.Click&lt;br /&gt;
        offset.Height = offset.Height - 10&lt;br /&gt;
        panel1.Refresh()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub rightButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rightButton.Click&lt;br /&gt;
        offset.Width = offset.Width + 10&lt;br /&gt;
        panel1.Refresh()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub leftButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles leftButton.Click&lt;br /&gt;
        offset.Width = offset.Width - 10&lt;br /&gt;
        panel1.Refresh()&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&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>