DialogResult testGamen = testForm.ShowDialog();
DialogResult ... どのボタンで閉じられたのか等の処理情報を取得するデータ型。
testGamen ... モーダル画面を閉じたときの情報を格納する変数。
testForm.ShowDIalog() ... フォームをモーダル表示するメソッド。どのように閉じたかという戻り値を返す。
VisualStudio C#とMySQL or SQLiteで競馬ソフトを作ってみる。そのメモ。
DialogResult testGamen = testForm.ShowDialog();
コメントをかく