Exercises

Exercise 18-1

Create a Windows application that displays the word “Hello” in a label, and has a button that changes the display to “Goodbye.”

Exercise 18-2

Create a Windows application that presents an order form that looks like Figure 18-12.

Exercise 2 order form

Figure 18-12. Exercise 2 order form

This figure represents an order form that that lets the user enter information through various controls such as buttons, checkboxes, radio buttons, DateTimePicker, and so forth. You don’t need to write the back-end for the ordering system, but you can do the following:

  • Simulate saving to the shopping cart with a message, and reset the form when the “Add to Shopping Cart” button is clicked.

  • Set the minimum delivery date to be two days from now, and let the user select later dates.

Exercise 18-3

Modify the first exercise by dragging a timer (found in the Components section of the Toolbox) onto the form and having the timer change the message from “Hello” to “Goodbye” and back once per second. Change the button to turn this behavior on and off. Use the Microsoft Help files to figure out how to use the timer to accomplish this exercise.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset