私のプログラムには以下のコードがあります。メッセージボックスの1つがポップアップして、フィールドフォームの内容が表示されます。[OK]をクリックすると、別のポップアップが表示され、情報が正しいかどうかをユーザーに尋ねます。フォームの内容を表示し、情報が正しいかどうかを尋ねるメッセージボックスがポップアップ表示され、[はい/いいえ]ボタンが表示される2つを組み合わせたいと思います。私は2つを組み合わせて無駄にしようとしました。構文の概念が欠けていると思います。何か案は?
//shows contents of form fields
StringBuilder MessageText = new StringBuilder();
MessageText.AppendLine(string.Format("Coil#: {0}", coil_Num.Text));
MessageText.AppendLine(string.Format("Location: {0}", location_box.Text));
MessageText.AppendLine(string.Format("Sub-Area: {0}", sub_area_box.Text));
MessageText.AppendLine(string.Format("Row: {0}", row_Num.Text));
MessageBox.Show(MessageText.ToString());
//asks if info is correct, with a YES/NO button and question mark
DialogResult result1 = MessageBox.Show("Information is correct?",
"Double Check Form Information",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Question);