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 ...
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.
Read now
Unlock full access