Skip to Main Content
Programming Windows®, Six Edition
book

Programming Windows®, Six Edition

by Charles Petzold
January 2013
Intermediate to advanced content levelIntermediate to advanced
1136 pages
34h 9m
English
Microsoft Press
Content preview from Programming Windows®, Six Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Windows®, Fifth Edition

Programming Windows®, Fifth Edition

Charles Petzold
Programming C# 10

Programming C# 10

Ian Griffiths
Windows® via C/C++, 5th Edition

Windows® via C/C++, 5th Edition

Jeffrey Richter, Christophe Nasarre
Programming C# 8.0

Programming C# 8.0

Ian Griffiths

Publisher Resources

ISBN: 9780735671751Purchase book