Csharp/CSharp Tutorial/GUI Windows Forms/Splitter

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

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());
  }
}