MenuStrip by Szeto CY Visual C# 2008
form2 form1 Main Menu menuStrip1 檔案, 離開 應用, 程式一,二 form2 程式一 groupBox1,2 radioButton1,2 checkBox1-4 form3 程式二 by Szeto CY Visual C# 2008
雙按 (form1, menuStrip1, 程式一),並加入以下程式碼: private void 程式一ToolStripMenuItem_Click (object sender, EventArgs e) { Form2 f2 = new Form2(); f2.Show(); } 顯示 form2 private void 離開ToolStripMenuItem_Click (object sender, EventArgs e) { this.Close(); } 關閉 form1 by Szeto CY Visual C# 2008
雙按 (form2, radioButton1,2),並加入以下程式碼: private void radioButton1_CheckedChanged (object sender, EventArgs e) { groupBox1.Visible = true; groupBox2.Visible = false; } 是否顯示 private void radioButton2_CheckedChanged (object sender, EventArgs e) { groupBox1.Visible = false; groupBox2.Visible = true; } by Szeto CY Visual C# 2008