how Icould use messagebox result?
-
I have not messagebox result and I really want to use it. when I type it , it dosen't apear. I search and I find this
public enum messageboxresult
but I didn't khnow how to use it.Here is an example of how to get the result from a message box.
private void doSomething()
{
DialogResult theResult = MessageBox.Show("Is this working?", "Well.......",MessageBoxButtons.YesNo,MessageBoxIcon.Question);if (theResult == DialogResult.Yes)
{
//Go and do something here
}
}Dave Don't forget to rate messages!
Find Me On: Web|Facebook|Twitter|LinkedIn
Waving? dave.m.auld[at]googlewave.com -
I have not messagebox result and I really want to use it. when I type it , it dosen't apear. I search and I find this
public enum messageboxresult
but I didn't khnow how to use it.MessageBoxButton buttons = MessageBoxButton.OKCancel;
MessageBoxImage icon = MessageBoxImage.Information;
MessageBoxResult defaultResult = MessageBoxResult.OK;
// Show message box
MessageBoxResult result = MessageBox.Show(message, caption, buttons, icon, defaultResult);This is however available only in .Net framework 3 and above. See here.
Quidquid latine dictum sit, altum videtur.
Whatever is said in Latin sounds profound. -
Here is an example of how to get the result from a message box.
private void doSomething()
{
DialogResult theResult = MessageBox.Show("Is this working?", "Well.......",MessageBoxButtons.YesNo,MessageBoxIcon.Question);if (theResult == DialogResult.Yes)
{
//Go and do something here
}
}Dave Don't forget to rate messages!
Find Me On: Web|Facebook|Twitter|LinkedIn
Waving? dave.m.auld[at]googlewave.comIn yes or no, this can be use
if (MessageBox.Show("Is this working?", "Well.......", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
}
else // no
{
}TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
I have not messagebox result and I really want to use it. when I type it , it dosen't apear. I search and I find this
public enum messageboxresult
but I didn't khnow how to use it. -
I have not messagebox result and I really want to use it. when I type it , it dosen't apear. I search and I find this
public enum messageboxresult
but I didn't khnow how to use it.http://infynet.wordpress.com/2010/08/28/check-message-box-result hi check this link.
-
I have not messagebox result and I really want to use it. when I type it , it dosen't apear. I search and I find this
public enum messageboxresult
but I didn't khnow how to use it.http://infynet.wordpress.com/2010/08/28/check-message-box-result hi check this link :laugh: :laugh: