Windows Phone Developers

Wednesday, January 7, 2009

How to check if the OpenDialog is cancelled

How to check if the OpenDialog is cancelled

To check if the OpenDialog is cancelled try the following code

if (openXLFile.ShowDialog() == DialogResult.Cancel) {

MessageBox.Show("You have cancelled the dialog! Please select a file");

}

Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

No comments:

Post a Comment