<?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_Tutorial%2FGUI%2FPanel</id>
		<title>VB.Net Tutorial/GUI/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_Tutorial%2FGUI%2FPanel"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/Panel&amp;action=history"/>
		<updated>2026-04-05T07:09:58Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/Panel&amp;diff=3760&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_Tutorial/GUI/Panel&amp;diff=3760&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:30Z</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_Tutorial/GUI/Panel&amp;diff=3761&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/Panel&amp;diff=3761&amp;oldid=prev"/>
				<updated>2010-05-26T12:56:35Z</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;==Add controls to a panel==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;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&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Panel auto scroll position==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class PanelAutoScrollPosition&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;
    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;
&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&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>