1

how can i make a messagebox on windows 10 (modern) Universal app Platform (UWP) like on windows clasic form(messagebox.show)? thanks

3 Answers3

4

For Universal Apps, the new APIs require you to use await

MessageDialog().ShowAsync() (in Windows.UI.Popups) 
// to bring it into line with Win 8.1.

var dialog = new MessageDialog("Your message here Hello");
await dialog.ShowAsync();
Khawar Islam
  • 2,556
  • 2
  • 34
  • 56
3

You can do this:

var dialog = new MessageDialog("Your message here");
await dialog.ShowAsync();
1
var dialog = new MessageDialog("Hello World");
await dialog.ShowAsync();
Ken Tucker
  • 4,126
  • 1
  • 18
  • 24