private void buttonMasuk_Click(object sender, EventArgs e) { Form3Masuk Masuk = new Form3Masuk(); Masuk.Closed += (s, args) => this.Close(); Masuk.ShowDialog(); this.Hide(); this.Close(); }
private void buttonCSyarat_Click(object sender, EventArgs e) { if (beranda != null & masuk != null) { panelContainer.Controls.Remove(beranda); panelContainer.Controls.Remove(masuk); beranda.Close(); masuk.Close(); beranda = null; masuk = null; } Form4Peraturan Formsyarat = new Form4Peraturan(); Formsyarat.TopLevel = false; Formsyarat.Size = panelContainer.Size; panelContainer.Controls.Add(Formsyarat); Formsyarat.Show(); }
private void button1_Click(object sender, EventArgs e) { if (beranda != null & masuk != null) { panelContainer.Controls.Remove(beranda); panelContainer.Controls.Remove(masuk); beranda.Close(); masuk.Close(); beranda = null; masuk = null; } Form1Container container = new Form1Container(); container.TopLevel = false; container.Size = panelContainer.Size; panelContainer.Controls.Add(container); container.Show(); }
private void buttonCBeranda_Click(object sender, EventArgs e) { if (masuk != null & syarat != null) { panelContainer.Controls.Remove(masuk); panelContainer.Controls.Remove(syarat); masuk.Close(); syarat.Close(); masuk = null; syarat = null; } Form2Beranda Formberanda = new Form2Beranda(); Formberanda.TopLevel = false; Formberanda.Size = panelContainer.Size; panelContainer.Controls.Add(Formberanda); Formberanda.Show(); }
private void buttonCMasuk_Click(object sender, EventArgs e) { buttonCMasuk.Enabled = false; buttoncKeluar.Enabled = true; buttoncKeluar.Visible = true; if (beranda != null & syarat != null) { panelContainer.Controls.Remove(beranda); panelContainer.Controls.Remove(syarat); beranda.Close(); syarat.Close(); beranda = null; syarat = null; } Form3Masuk Formmasuk = new Form3Masuk(); Formmasuk.TopLevel = false; Formmasuk.Size = panelContainer.Size; panelContainer.Controls.Add(Formmasuk); Formmasuk.Show(); }
private void buttonMasuk_Click(object sender, EventArgs e) { Form3Masuk frm3 = new Form3Masuk(); frm3.ShowDialog(); }