Csharp/CSharp Tutorial/GUI Windows Forms/Splitter — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
| |
Текущая версия на 12:15, 26 мая 2010
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());
}
}