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

 

Home ] Up ]


 

Weather Program

 

1. Create a solution and project with the name Weather.
2. Design the interface according to the GUI standards and add the following controls:
2.1 Add five radio buttons and name them:  CloudRadioButton, RainRadioButton, SunRadioButton, LightningRadioButton and SnowRadioButton.
2.2 Add six picture boxes, name them:  DisplayPictureBox, CloudPictureBox, RainPictureBox, SunPictureBox, LightningPictureBox and SnowPictureBox
2.3 Add a button and name it ExitButton
3. Five picture boxes should each contain a picture.  Below are the images.  Right-click an image and save it to your computer.
                   
4. Create a collection for the five radio buttons.
5. Create a collection for the five picture boxes containing pictures.  Do not include the DisplayPictureBox in the collection.
6. Set the Visibility property for picture boxes to False, except for the DisplayPictureBox
7. Write code that will display the appropriate image in the DisplayPictureBox when a radio button is selected, e.g. when the CloudRadioButton is selected, display the image of the CloudPictureBox in the DisplayPictureBox.
8. Code the ExitButton.
9. Save your project and then test it.

 


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