Message Boxes
Message boxes provide the user with information while the program is running. Yes, they are indeed a MESSAGE that is provided in a BOX, and they work similarly to an input box.
Lets see how they work
Using Message Boxes attached to a Button! Go Full Screen to see in greater detail?
|
Introducing Message Boxes
- Watch which shows the code for a Simple Message Box.
- Add an End button and a simple message box to the Exam Results program as shown in the movie.
Another Kind of Message Boxes
Using Yes/No Message Boxes! Go Full Screen to see in greater detail?
|
- Watch which shows the code for Yes/No Message boxes which allow the program to do different things depending on the response of the user.
- Change the code for the Exam Results program to include the Yes No message box shown.
- Include a simple message box that says that all marks have been entered once the loop to take in marks and display percentages is completed.
What you have to do!
- Watch and add the code for a simple End Button and Message Box for the Exam Results program.
- Watch Movie 21 and modify change the code for the Exam Results program to include a simple Yes/No message.
- Tick off your Progress Grids
Mark off Exercise 14 in your progress grids.
What you should now be able to do!
-
Use an End Command button to stop a program running
-
Use a simple message box to display a message
-
Use a message box with a yes/no option for the user to make a decision.