views:

483

answers:

1

Hi

I wanted to know how I can display a modal dialog in one of my forms in a windows mobile application. I am getting the user inputs in a form and in case a validation fails, I want to display a dialog to the user telling them so (with just an OK button).

So far, the only thing related to dialogs I found in the framework was the DialogResult class.

I am developing for Windows Smart phone using the Windows Mobile 6 Standard SDK.

Thanks a lot for any help.

+1  A: 

The .NET Compact Framework supports MessageBox.Show, which pops up a modal message. If all you need to do is display some text and wait for an OK, that works fine.

Matt Hamilton