O'Reilly logo

Absolute Beginner's Guide to Programming, Second Edition by Greg Perry

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

Message and Input Boxes

Sometimes your applications will need to display messages and ask questions of the user. Some messages and questions are best displayed from within a dialog box such as the one in Figure 6.10. Such a dialog box pops up with a message or question when needed but stays out of the way and does not require extra controls on your form at other times.

For example, suppose you want to know if the user has prepared the printer for printing a report. The user has to turn on the printer, make sure it has paper, and see that the online light is on. Your program should not attempt to print until the user has performed these actions, or an error will occur. Therefore, when it is time to print, your application pauses to ask the user ...

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