private void Home_Load(object sender, EventArgs e) { // this.Size = new Size(900, 300); this.MinimumSize = new Size(1000, 600); duyurular(); timer1.Start(); Menu menu = new Menu(); musterilistesi mlistesi = new musterilistesi(); if (label5.Text == "False") { menu.groupBox1.Visible = false; menu.groupBox5.Visible = false; menu.Size = new Size(450, 272); //450; 272 label7.Text = "Kasiyer"; } else { label7.Text = "Yönetici"; menu.groupBox1.Visible = true; menu.groupBox5.Visible = true; this.Size = new Size(655, 342); //655; 342 } /* Arka Plan Rengi İçin Kodlar Başlangıç */ MdiClient ctlMDI; foreach (Control ctl in this.Controls) { try { ctlMDI = (MdiClient)ctl; ctlMDI.BackColor = this.BackColor; } catch (InvalidCastException) { } } /* Arka Plan Rengi İçin Kodlar Son */ menu.MdiParent = this; menu.Show(); }
private void button11_Click(object sender, EventArgs e) { musterilistesi musterilistesi = new musterilistesi(); musterilistesi.ShowDialog(); }