Windows Phone Developers

Showing posts with label Check if the OpenDialog is cancelled in C#. Show all posts
Showing posts with label Check if the OpenDialog is cancelled in C#. Show all posts

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