CHALLENGES


  1. As the game is currently written, it is not always clear what type of shape the player is working with. To make the application easier to use, add a status bar control and use it to display a string identifying the currently selected shape.

  2. The Graphics class provides the ability to create numerous other shapes besides rectangles, ellipses, and Lines. Enhance the VB Doodle game to support other shapes, such as the pie, arc, and polygon. You can get information on the arguments that need to be supplied to create each of the shapes using Visual Basic's Help system.

  3. The Visual Basic Pens and Brushes classes provide access to many dozens of predefined colors. Expand the VB Doodle game's list of supported colors to give the player additional choices.

  4. Use the MessageBox.Show method to require that the player confirm the desire to clear the drawing area before allowing the btnClear_Click event procedure to execute.

  5. Make the VB Doodle game a Little more exciting by adding some sound effects. For example, consider playing the C:\windows\Media\Tada.wav file when the application first loads. Also, find a different sound to play when the player switches colors and when the player clicks on the button that clears the drawing surface.




Microsoft Visual Basic 2005 Express Edition Programming for the Absolute Beginner
Microsoft Visual Basic 2005 Express Edition Programming for the Absolute Beginner
ISBN: 1592008143
EAN: 2147483647
Year: 2006
Pages: 126

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