O'Reilly logo

Programming Windows®, Six Edition by Charles Petzold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Asynchronicity

These days programmers are discouraged from making frequent use of message boxes, but I’m sure we can all acknowledge how useful they can be to give the user some important information in a very direct manner, or to obtain a vital Yes, No, or Cancel.

The Windows Runtime supports a message box with the MessageDialog class, and it’s actually quite versatile: Up to three buttons can be labeled with whatever text you’d like. However, there is no Show method in this class. The expected Show method has been replaced with ShowAsync.

That Async suffix is short for “asynchronous,” and that’s a very important sequence of five letters in the Windows Runtime. It’s not just a change of name; it’s a change in how you use the method and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required