using System; using System.Drawing; using System.Windows.Forms; class Program01 : Form { FlowLayoutPanel flp = new FlowLayoutPanel(); Button button1 = new Button(); Button button2 = new Button(); Program01() { flp.FlowDirection = FlowDirection.LeftToRight; flp.WrapContents = false; flp.Dock = DockStyle.Fill; button1.Text = "Teszt"; button1.Anchor = AnchorStyles.Bottom; button2.Text = "Teszt2"; button2.Dock = DockStyle.Right; flp.Controls.Add(button1); flp.Controls.Add(button2); this.Controls.Add(flp); this.StartPosition = FormStartPosition.CenterScreen; } public static void Main() { Application.Run(new Program01()); } }