lundi 2 mars 2015

DialogForm not working properly - have to press NO button twice in winforms


DialogResult result = MessageBox.Show(this,"更新したデータを削除されます。よろしいでしょうか", "保存確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (result == DialogResult.No)
{
dgvStore.Rows[Test.PrvsIndex].Selected=true;
return;
}

Aucun commentaire:

Enregistrer un commentaire