private void btnNo_Click(object sender, EventArgs e) { FIntroduction tabLearnNewWord = new FIntroduction(); tabLearnNewWord.AutoScroll = true; tabLearnNewWord.TopLevel = false; pnlLoad.Controls.Clear(); pnlLoad.Controls.Add(tabLearnNewWord); pnlLoad.Dock = DockStyle.Fill; tabLearnNewWord.FormBorderStyle = FormBorderStyle.None; tabLearnNewWord.Show(); pnlLoad.Visible = true; }
private void btnHome_Click(object sender, EventArgs e) { FIntroduction tabLearnNewWord = new FIntroduction(); tabLearnNewWord.AutoScroll = true; tabLearnNewWord.TopLevel = false; pnlLoad.Controls.Clear(); pnlLoad.Controls.Add(tabLearnNewWord); tabLearnNewWord.FormBorderStyle = FormBorderStyle.None; tabLearnNewWord.Show(); pnlLoad.Visible = true; this.btnSpeaker2.Visible = false; this.btnDone.Visible = false; this.btnHome.Visible = false; }
private void btnHome_Click(object sender, EventArgs e) { tabHome = new FIntroduction(); tabHome.TopLevel = false; pnlLoadForm.Controls.Clear(); pnlLoadForm.Controls.Add(tabHome); tabHome.FormBorderStyle = FormBorderStyle.None; tabHome.Show(); /* this.pnlMenu.Visible = false; * this.pnlMenu.Left = -1 * this.pnlMenu.Width;*/ this.btnShowMenu.Visible = true; HideMenuBar(); if (Data.simpleLove.Created) { Data.simpleLove.Ctlcontrols.stop(); } if (Data.simpleSound.IsLoadCompleted) { Data.simpleSound.Stop(); } }