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

 

Home ] Up ]


 

FM Radio Program

 

1. Create an application that will simulate an FM radio dial. When you click on a tuning button, your favorite radio station will appear in the dial’s display window.
.
2. Create a new application and name the project fmradio.
2.1 The name of the form should be frmfmradio.
2.2 Change the form’s Text property to Fm Radio.
2.3 Set the WindowState property to Maximized.
2.4 Assign the filename fmradio.vb to the form file object.
2.5 Set the project’s startup form to frmfmradio.
.
3. In the center of the top of the form, create a label named lblstation and erase the Text property.
3.1 Set the TextAlign property of the lblstation object to MiddleCenter.
3.2 Set the Font property so it is large enough to fill the label box you drew.
3.3 Set the BorderStyle property to Fixed3D.
.
4. Create a button below the lblstation object and align it on the bottom right side.
4.1 Call it btntuning and set the button’s Text property to the word “Tuning”, without the quotes.
4.2 Pick an appropriate font and size for the word Tuning.
4.3 Double click on the button object to enter the code window and add the appropriate code to the button object to display the text of your favorite station (eg. lblstation.text = “104.3”).
.
5. Create a second button and place it below the lblstation on the bottom left side.
5.1 Call it btnexit and set the button’s Text property to the word “Exit”, without the quotes.
5.2 Pick an appropriate font and size for the word Exit.
5.3 Double click on the Exit button object to enter the code window and add the appropriate code to the Exit button object to end the application.
.
6. 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