SIDEBAR
»
S
I
D
E
B
A
R
«

DialogResult ve MessageBox Kullanımı
Mar 17th, 2010 by Özcan BAYĞUŞ

DialogResult Olay = MessageBox.Show("Bu satır silinecek","Onaylama",MessageBoxButtons.YesNoCancel,MessageBoxIcon.Exclamation);
if (DialogResult.Yes == Olay)
MessageBox.Show("Yes düğmesi tıklandı");
if (DialogResult.No == Olay)
MessageBox.Show("No düğmesi tıklandı");
if (DialogResult.Cancel == Olay)
MessageBox.Show("Cancel düğmesi tıklandı");
DialogResult Onay = MessageBox.Show("düğme tıkla","deneme",MessageBoxButtons.AbortRetryIgnore);
if (DialogResult.Abort == Onay)
MessageBox.Show("Abort düğmesi tıklandı");
if (DialogResult.Ignore == Onay)
MessageBox.Show("Ignore tuşu tıklandı");
if (DialogResult.Retry == Onay)
MessageBox.Show("Retry düğmesi tıklandı");

»  Substance:WordPress   »  Style:Ahren Ahimsa