private void button1_Click(object sender, EventArgs e) { panel3.Controls.Clear(); PaymentCoach frm = new PaymentCoach() { TopLevel = false, TopMost = true }; frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; frm.AutoSize = true; frm.AutoScroll = true; frm.Dock = DockStyle.Fill; this.panel3.Controls.Add(frm); frm.Show(); }
public FR2(PaymentCoach pc1) { InitializeComponent(); pc = pc1; }