/// <summary> /// メインメニューに戻るボタン押下時処理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BackMainMenuButton_Click(object sender, EventArgs e) { //表示フォーム切り替え Form ViewForm = new MainMenuForm(); ViewForm.Show(); Hide(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form ViewForm = new MainMenuForm(); Application.Run(ViewForm); }