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.
Figure 6.10. A message box provides a handy way to tell your user something.
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 ...
Get Absolute Beginner's Guide to Programming, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.