using System;
using System.Drawing;
using System.Windows.Forms;
public class ControlDock : Form
{
public ControlDock()
{
Size = new Size(350,400);
int yButtonSize = Font.Height * 2;
Button btn = new Button();
btn.Parent = this;
btn.Text = "First Button";
btn.Height = yButtonSize;
btn.Dock = DockStyle.Top;
btn = new Button();
btn.Parent = this;
btn.Text = "Second Button";
btn.Height = yButtonSize;
btn.Dock = DockStyle.Bottom;
}
static void Main()
{
Application.Run(new ControlDock());
}
}
Sunday, January 11, 2009
Dock Top and Bottom tutorial example
8:17 AM
Pattikankam Rajeshwar K
1 comment
1 comments:
microsoft networking dums
email id: devbelel@yahoo.com (urgent)
Post a Comment