public void GriztiPoRegistracijos() { LogInForm form = new LogInForm(KeistiLoginForma); form.TopLevel = false; form.AutoSize = false; panel1.Controls.Clear(); panel1.Controls.Add(form); form.Show(); }
public Form1() { InitializeComponent(); this.WindowState = FormWindowState.Normal; this.MaximizeBox = false; LogInForm form = new LogInForm(IsjungtiLoginoForma); form.TopLevel = false; form.AutoSize = false; panel1.Controls.Add(form); form.Show(); Task.Factory.StartNew(() => { timer1.Start(); }); }