Simple Splitter : Splitter « GUI Windows Forms « C# / CSharp Tutorial






Simple Splitter
using System;
using System.Drawing;
using System.Windows.Forms;

public class Splitters : Form
{
  public Splitters()
  {
    Size = new Size(300,200);

    GroupBox grpFill = new GroupBox();
    grpFill.Parent = this;
    grpFill.Dock = DockStyle.Fill;
    grpFill.Text = "Dock Fill";

    Splitter s = new Splitter();
    s.Parent = this;
    s.Dock = DockStyle.Left;

    GroupBox grpLeft = new GroupBox();
    grpLeft.Parent = this;
    grpLeft.Dock = DockStyle.Left;
    grpLeft.Text = "Dock Left";

  }

  static void Main() 
  {
    Application.Run(new Splitters());
  }
}








23.23.Splitter
23.23.1.Simple SplitterSimple Splitter