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

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/Splitter&amp;diff=3844&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/Splitter&amp;diff=3844&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/Splitter&amp;diff=3845&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/Splitter&amp;diff=3845&amp;oldid=prev"/>
				<updated>2010-05-26T12:57:05Z</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;==Splitter Control==&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.Windows.Forms&lt;br /&gt;
public class SplitterControl&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;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
    End Sub&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;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    Friend WithEvents Splitter1 As System.Windows.Forms.Splitter&lt;br /&gt;
    Friend WithEvents TreeView1 As System.Windows.Forms.TreeView&lt;br /&gt;
    Friend WithEvents ImageList1 As System.Windows.Forms.ImageList&lt;br /&gt;
    Friend WithEvents Splitter2 As System.Windows.Forms.Splitter&lt;br /&gt;
    Friend WithEvents Panel1 As System.Windows.Forms.Panel&lt;br /&gt;
    Friend WithEvents Label1 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents Splitter3 As System.Windows.Forms.Splitter&lt;br /&gt;
    Friend WithEvents ListView1 As System.Windows.Forms.ListView&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.ruponents = New System.ruponentModel.Container&lt;br /&gt;
        Me.Splitter1 = New System.Windows.Forms.Splitter&lt;br /&gt;
        Me.TreeView1 = New System.Windows.Forms.TreeView&lt;br /&gt;
        Me.ImageList1 = New System.Windows.Forms.ImageList(Me.ruponents)&lt;br /&gt;
        Me.Splitter2 = New System.Windows.Forms.Splitter&lt;br /&gt;
        Me.Panel1 = New System.Windows.Forms.Panel&lt;br /&gt;
        Me.Label1 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.Splitter3 = New System.Windows.Forms.Splitter&lt;br /&gt;
        Me.ListView1 = New System.Windows.Forms.ListView&lt;br /&gt;
        Me.Panel1.SuspendLayout()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Splitter1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Splitter1.Location = New System.Drawing.Point(0, 0)&lt;br /&gt;
        Me.Splitter1.Name = &amp;quot;Splitter1&amp;quot;&lt;br /&gt;
        Me.Splitter1.Size = New System.Drawing.Size(3, 266)&lt;br /&gt;
        Me.Splitter1.TabIndex = 0&lt;br /&gt;
        Me.Splitter1.TabStop = False&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TreeView1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.TreeView1.Dock = System.Windows.Forms.DockStyle.Left&lt;br /&gt;
        Me.TreeView1.Location = New System.Drawing.Point(3, 0)&lt;br /&gt;
        Me.TreeView1.Name = &amp;quot;TreeView1&amp;quot;&lt;br /&gt;
        Me.TreeView1.Nodes.AddRange(New System.Windows.Forms.TreeNode() {New System.Windows.Forms.TreeNode(&amp;quot;A&amp;quot;, New System.Windows.Forms.TreeNode() {New System.Windows.Forms.TreeNode(&amp;quot;Visual Basic&amp;quot;), New System.Windows.Forms.TreeNode(&amp;quot;Visual C++&amp;quot;), New System.Windows.Forms.TreeNode(&amp;quot;Delphi&amp;quot;), New System.Windows.Forms.TreeNode(&amp;quot;Java&amp;quot;)}), New System.Windows.Forms.TreeNode(&amp;quot;B&amp;quot;, New System.Windows.Forms.TreeNode() {New System.Windows.Forms.TreeNode(&amp;quot;1&amp;quot;), New System.Windows.Forms.TreeNode(&amp;quot;2&amp;quot;), New System.Windows.Forms.TreeNode(&amp;quot;3&amp;quot;), New System.Windows.Forms.TreeNode(&amp;quot;4&amp;quot;)})})&lt;br /&gt;
        Me.TreeView1.Size = New System.Drawing.Size(101, 266)&lt;br /&gt;
        Me.TreeView1.TabIndex = 1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Splitter2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Splitter2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D&lt;br /&gt;
        Me.Splitter2.Location = New System.Drawing.Point(104, 0)&lt;br /&gt;
        Me.Splitter2.Name = &amp;quot;Splitter2&amp;quot;&lt;br /&gt;
        Me.Splitter2.Size = New System.Drawing.Size(8, 266)&lt;br /&gt;
        Me.Splitter2.TabIndex = 2&lt;br /&gt;
        Me.Splitter2.TabStop = False&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Panel1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D&lt;br /&gt;
        Me.Panel1.Controls.Add(Me.ListView1)&lt;br /&gt;
        Me.Panel1.Controls.Add(Me.Splitter3)&lt;br /&gt;
        Me.Panel1.Controls.Add(Me.Label1)&lt;br /&gt;
        Me.Panel1.Dock = System.Windows.Forms.DockStyle.Top&lt;br /&gt;
        Me.Panel1.Location = New System.Drawing.Point(112, 0)&lt;br /&gt;
        Me.Panel1.Name = &amp;quot;Panel1&amp;quot;&lt;br /&gt;
        Me.Panel1.Size = New System.Drawing.Size(248, 264)&lt;br /&gt;
        Me.Panel1.TabIndex = 3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label1.Dock = System.Windows.Forms.DockStyle.Top&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(244, 32)&lt;br /&gt;
        Me.Label1.TabIndex = 0&lt;br /&gt;
        Me.Label1.Text = &amp;quot;Label1&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Splitter3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Splitter3.Dock = System.Windows.Forms.DockStyle.Top&lt;br /&gt;
        Me.Splitter3.Location = New System.Drawing.Point(0, 32)&lt;br /&gt;
        Me.Splitter3.Name = &amp;quot;Splitter3&amp;quot;&lt;br /&gt;
        Me.Splitter3.Size = New System.Drawing.Size(244, 8)&lt;br /&gt;
        Me.Splitter3.TabIndex = 1&lt;br /&gt;
        Me.Splitter3.TabStop = False&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;ListView1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.ListView1.Dock = System.Windows.Forms.DockStyle.Fill&lt;br /&gt;
        Me.ListView1.Location = New System.Drawing.Point(0, 40)&lt;br /&gt;
        Me.ListView1.Name = &amp;quot;ListView1&amp;quot;&lt;br /&gt;
        Me.ListView1.Size = New System.Drawing.Size(244, 220)&lt;br /&gt;
        Me.ListView1.TabIndex = 2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&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(360, 266)&lt;br /&gt;
        Me.Controls.Add(Me.Panel1)&lt;br /&gt;
        Me.Controls.Add(Me.Splitter2)&lt;br /&gt;
        Me.Controls.Add(Me.TreeView1)&lt;br /&gt;
        Me.Controls.Add(Me.Splitter1)&lt;br /&gt;
        Me.Panel1.ResumeLayout(False)&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect&lt;br /&gt;
        Dim childnum, index, i As Int32&lt;br /&gt;
        childnum = TreeView1.SelectedNode.GetNodeCount(False)&lt;br /&gt;
        index = TreeView1.SelectedNode.Index&lt;br /&gt;
        index = index + 1&lt;br /&gt;
        ListView1.Items.Clear()&lt;br /&gt;
        For i = 0 To childnum - 1&lt;br /&gt;
            ListView1.Items.Add(index.ToString + &amp;quot;.&amp;quot; + i.ToString, 1)&lt;br /&gt;
        Next&lt;br /&gt;
        Label1.Text = TreeView1.SelectedNode.FullPath&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use Spliter==&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 UseSpliter&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New frmMultipane)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class frmMultipane&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 TreeView1 As System.Windows.Forms.TreeView&lt;br /&gt;
    Friend WithEvents Splitter1 As System.Windows.Forms.Splitter&lt;br /&gt;
    Friend WithEvents Panel1 As System.Windows.Forms.Panel&lt;br /&gt;
    Friend WithEvents ListView1 As System.Windows.Forms.ListView&lt;br /&gt;
    Friend WithEvents ImageList1 As System.Windows.Forms.ImageList&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.ruponents = New System.ruponentModel.Container()&lt;br /&gt;
        Me.TreeView1 = New System.Windows.Forms.TreeView()&lt;br /&gt;
        Me.Splitter1 = New System.Windows.Forms.Splitter()&lt;br /&gt;
        Me.Panel1 = New System.Windows.Forms.Panel()&lt;br /&gt;
        Me.ListView1 = New System.Windows.Forms.ListView()&lt;br /&gt;
        Me.Panel1.SuspendLayout()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TreeView1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.TreeView1.Dock = System.Windows.Forms.DockStyle.Left&lt;br /&gt;
        Me.TreeView1.Name = &amp;quot;TreeView1&amp;quot;&lt;br /&gt;
        Me.TreeView1.SelectedImageIndex = -1&lt;br /&gt;
        Me.TreeView1.Size = New System.Drawing.Size(200, 221)&lt;br /&gt;
        Me.TreeView1.TabIndex = 0&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Splitter1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Splitter1.Location = New System.Drawing.Point(200, 0)&lt;br /&gt;
        Me.Splitter1.Name = &amp;quot;Splitter1&amp;quot;&lt;br /&gt;
        Me.Splitter1.Size = New System.Drawing.Size(8, 221)&lt;br /&gt;
        Me.Splitter1.TabIndex = 1&lt;br /&gt;
        Me.Splitter1.TabStop = False&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Panel1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Panel1.Controls.AddRange(New System.Windows.Forms.Control() {Me.ListView1})&lt;br /&gt;
        Me.Panel1.Dock = System.Windows.Forms.DockStyle.Fill&lt;br /&gt;
        Me.Panel1.Location = New System.Drawing.Point(208, 0)&lt;br /&gt;
        Me.Panel1.Name = &amp;quot;Panel1&amp;quot;&lt;br /&gt;
        Me.Panel1.Size = New System.Drawing.Size(192, 221)&lt;br /&gt;
        Me.Panel1.TabIndex = 2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;ListView1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.ListView1.Dock = System.Windows.Forms.DockStyle.Fill&lt;br /&gt;
        Me.ListView1.Name = &amp;quot;ListView1&amp;quot;&lt;br /&gt;
        Me.ListView1.Size = New System.Drawing.Size(192, 221)&lt;br /&gt;
        Me.ListView1.TabIndex = 0&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;frmMultipane&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(400, 221)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Panel1, Me.Splitter1, Me.TreeView1})&lt;br /&gt;
        Me.Name = &amp;quot;frmMultipane&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Multi-Pane Example&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;
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) _&lt;br /&gt;
    Handles MyBase.Load&lt;br /&gt;
        TreeView1.ShowPlusMinus = True&lt;br /&gt;
        TreeView1.Sorted = True&lt;br /&gt;
        TreeView1.ShowLines = True&lt;br /&gt;
        Dim aNode As New TreeNode(&amp;quot;c:\&amp;quot;)&lt;br /&gt;
        aNode.Tag = &amp;quot;c:\&amp;quot;&lt;br /&gt;
        TreeView1.Nodes.Add(aNode)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub getDirs(ByVal sender As Object, ByVal e As TreeViewEventArgs)Handles TreeView1.AfterSelect&lt;br /&gt;
        If Not e.Node.Nodes.Count = 0 Then Exit Sub&lt;br /&gt;
        Dim directory As New System.IO.DirectoryInfo(e.Node.Tag.ToString())&lt;br /&gt;
        getFiles(directory)&lt;br /&gt;
        Dim directories As System.IO.DirectoryInfo()&lt;br /&gt;
        directories = directory.GetDirectories()&lt;br /&gt;
        For Each directory In directories&lt;br /&gt;
            Dim aTreenode As New TreeNode(directory.Name)&lt;br /&gt;
            aTreenode.Tag = directory.FullName&lt;br /&gt;
            e.Node.Nodes.Add(aTreenode)&lt;br /&gt;
        Next&lt;br /&gt;
        e.Node.Expand()&lt;br /&gt;
    End Sub&lt;br /&gt;
    &lt;br /&gt;
    Sub getFiles(ByVal directory As System.IO.DirectoryInfo)&lt;br /&gt;
        ListView1.Columns.Clear()&lt;br /&gt;
        ListView1.Items.Clear()&lt;br /&gt;
        ListView1.View = View.Details&lt;br /&gt;
        ListView1.Columns.Add(&amp;quot;Filename&amp;quot;, 100, HorizontalAlignment.Left)&lt;br /&gt;
        ListView1.Columns.Add(&amp;quot;Extension&amp;quot;, 50, HorizontalAlignment.Left)&lt;br /&gt;
        ListView1.Columns.Add(&amp;quot;Bytes&amp;quot;, 50, HorizontalAlignment.Right)&lt;br /&gt;
        Dim files() As System.IO.FileInfo = directory.GetFiles&lt;br /&gt;
        Dim file As System.IO.FileInfo&lt;br /&gt;
        For Each file In files&lt;br /&gt;
            Dim li As New ListViewItem(file.Name)&lt;br /&gt;
            li.SubItems.Add(file.Extension)&lt;br /&gt;
            li.SubItems.Add(file.Length)&lt;br /&gt;
            ListView1.Items.Add(li)&lt;br /&gt;
        Next&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>