Section 18.6. Exercises


18.6. 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.

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.



Learning C# 2005
Learning C# 2005: Get Started with C# 2.0 and .NET Programming (2nd Edition)
ISBN: 0596102097
EAN: 2147483647
Year: 2004
Pages: 250

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net