using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms; namespace SplitContainerTest
{
public class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose( bool disposing )
{
if( disposing && ( components != null ) )
{
components.Dispose();
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode( "Node1" );
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode( "Node2" );
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode( "Node5" );
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode( "Node6" );
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode( "Node3", new System.Windows.Forms.TreeNode[] {
treeNode3,
treeNode4} );
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode( "Node4" );
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode( "Node0", new System.Windows.Forms.TreeNode[] {
treeNode1,
treeNode2,
treeNode5,
treeNode6} );
System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem( new string[] {
"abc",
"12",
"56676",
"998067"}, -1 );
System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem( "def" );
System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem( "xyz" );
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.treeView1 = new System.Windows.Forms.TreeView();
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.listView2 = new System.Windows.Forms.ListView();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
this.SuspendLayout();
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point( 0, 0 );
this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add( this.splitContainer2 );
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add( this.listView2 );
this.splitContainer1.Size = new System.Drawing.Size( 431, 366 );
this.splitContainer1.SplitterDistance = 133;
this.splitContainer1.TabIndex = 0;
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.Location = new System.Drawing.Point( 0, 0 );
this.splitContainer2.Name = "splitContainer2";
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add( this.treeView1 );
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add( this.listView1 );
this.splitContainer2.Size = new System.Drawing.Size( 431, 133 );
this.splitContainer2.SplitterDistance = 143;
this.splitContainer2.TabIndex = 0;
//
// treeView1
//
this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.treeView1.Location = new System.Drawing.Point( 0, 0 );
this.treeView1.Name = "treeView1";
treeNode1.Name = "Node1";
treeNode1.Text = "Node1";
treeNode2.Name = "Node2";
treeNode2.Text = "Node2";
treeNode3.Name = "Node5";
treeNode3.Text = "Node5";
treeNode4.Name = "Node6";
treeNode4.Text = "Node6";
treeNode5.Name = "Node3";
treeNode5.Text = "Node3";
treeNode6.Name = "Node4";
treeNode6.Text = "Node4";
treeNode7.Name = "Node0";
treeNode7.Text = "Node0";
this.treeView1.Nodes.AddRange( new System.Windows.Forms.TreeNode[] {
treeNode7} );
this.treeView1.Size = new System.Drawing.Size( 143, 133 );
this.treeView1.TabIndex = 0;
//
// listView1
//
this.listView1.Columns.AddRange( new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2,
this.columnHeader3} );
this.listView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.listView1.Items.AddRange( new System.Windows.Forms.ListViewItem[] {
listViewItem1,
listViewItem2,
listViewItem3} );
this.listView1.Location = new System.Drawing.Point( 0, 0 );
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size( 284, 133 );
this.listView1.TabIndex = 0;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.View = System.Windows.Forms.View.Details;
//
// listView2
//
this.listView2.Dock = System.Windows.Forms.DockStyle.Fill;
this.listView2.Location = new System.Drawing.Point( 0, 0 );
this.listView2.Name = "listView2";
this.listView2.Size = new System.Drawing.Size( 431, 229 );
this.listView2.TabIndex = 0;
this.listView2.UseCompatibleStateImageBehavior = false;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F );
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size( 431, 366 );
this.Controls.Add( this.splitContainer1 );
this.Name = "Form1";
this.Text = "Form1";
this.splitContainer1.Panel1.ResumeLayout( false );
this.splitContainer1.Panel2.ResumeLayout( false );
this.splitContainer1.ResumeLayout( false );
this.splitContainer2.Panel1.ResumeLayout( false );
this.splitContainer2.Panel2.ResumeLayout( false );
this.splitContainer2.ResumeLayout( false );
this.ResumeLayout( false );
}
#endregion
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.TreeView treeView1;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.ListView listView2;
}
}