Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

 

Home ] Up ]


 

Shutterbug Program

 

1. Create an application to allow a store owner to sell digital cameras, save the order to a file and retrieve the orders.  Prepare a TOE Chart before beginning to build the interface.
.
2. Create a new application and name the project Shutterbug.
.
2.1 The name of the form should be frmCameras.
2.2 Change the Text property to “Shutterbugs Inc.”
2.3 Set the WindowState property to Maximized.
2.4 Assign the filename cameras.vb to the form file object.
2.5 Set the project’s startup form to frmCameras.
.
3. In the center of the top of the form, create a label box.
.
3.1 Set the Text property of the label object to “Corner Camera Shop”.
3.2 Pick an appropriate font and size for the label.
3.3 Create a graphic to hold a picture on the form.  Use Google to locate a suitable image.
.
4. Create a label to hold the package deal.
5. Create a camera.dat file that contains the following:  Brand, Model, Viewfinder, Power Source, Resolution, etc.  Visit www.sony.com for product details which you can use to build the file, or make up your own data.
6. In the form load section, read the camera.dat file into the label. Use a Try Catch block to provide an appropriate error message if the file is not found.
.
7. Create buttons named btnreview, btnplace and btnexit.
.
7.1 In the btnplace button, read the order number file to get the number of orders placed, then close the file. Then delete the file by using the code IO.File.Delete("ordernum.dat") Add 1 to the number of orders placed and recreate the file with the new number of orders.
7.2 Be sure to include try – catch blocks to catch file not found errors.
7.3 In the btnreview button, read the file and place the number of orders into a label.
7.4 The Exit button should end the application.
.
8. Double-click anywhere on the form and set the focus to the btnplace button.
9. Save the solution, then start and test the application. Close the application.
 


All content on this site is free for private use only  |  Contributions are encouraged  |  Thank you to Netfirms for the free hosting  |  If copyright content is published here or links to certain content violates some right/law, contact the Webmaster to have it removed immediately.

 

Site launched: October 2005  |  Updated: July 20, 2006  |  Link exchange  |  Site map  |  Contact us