Documente Academic
Documente Profesional
Documente Cultură
Provide a button
CHECK VOWEL, which will check if the character is a vowel and display in a message box Character entered is a vowel else Character entered is a consonant.
2 )Create a project that allows the user to enter (in textboxes) three
integers. On click of command button Greatest the greatest of three integers must be displayed in a message box. On clicking the command button Least the least of three integers must be displayed in a message box.
4) Create a project that allows the user to enter a number in the textbox
named getnum. Check whether the number in the textbox getnum is palindrome or not. Print the message accordingly in the label control lbldisplay when the user click on the command button check.
5) Create a project that allows the user to enter a number in the textbox
named getnum. Check whether the number in the textbox getnum is palindrome or not. Print the message accordingly in the label control lbldisplay when the user click on the command button check.
6) Create a project that will read three numbers from user(use InputBox
function). Include command command buttons to Print addition of these numbers
Print average of these numbers Display the largest of these numbers Display the number if it is repeated
7) Create a project that will display three option buttons with caption
Normal, Minimize and Maximize and a command button Exit. When the Normal option button is selected, the form size is Normal. When the Minimized option button is selected, the form size is minimized. When the Maximized option button is selected, the form size is Maximized. Also write appropriate code for Exit command button.
10) Create a project which accept a main string in a text box and a
substring in another textbox. Find out how many times substring occurs in the main string. Also show its position.
8) Create a project to accept name and age (using text boxes) and gender
(using (option buttons) of a person. Provide a button CHECK ELIGIBILITY. If gender is male and age is greater than or equal to 21, or if gender is female and age is greater than or equal to 18 then display the name of the person concatenated with the string Eligible for Marriage. If the conditions do not satisfy then display the name of the person concatenated with the string Not Eligible for Marriage.
9) Create a project that will read three numbers from user(use InputBox
function). Include command command buttons to Print addition of these numbers Print average of these numbers Display the largest of these numbers Display the number if it is repeated
10) Create a project that will display three option buttons with caption
Normal, Minimize and Maximize and a command button Exit. When the Normal option button is selected, the form size is Normal. When the Minimized option button is selected, the form size is minimized. When the Maximized option button is selected, the form size is Maximized. Also write appropriate code for Exit command button.
11) Create a project which consists of two radio buttons having name
Image 1 and Image 2. On selection of one of the option buttons the respective image should be displayed in a image control.
12) Create a project that contains two sets of option buttons one for
color and other for font. There are three label controls on the form for displaying name, city, phone number. The values (name, city and phone number) are accepted from user. The selection of respective option button will change forecolor and font of the text displayed in user selected label control.
13) Create a project that will maintain a list of Ice-creame flavors. Use
combo box to hold flavors and use command buttons to Add flavor Remove flavor Clear list Display flavor count Exit Necessary validations should be done while adding or deleting flavor.
16) Create a project, which asks user to change the font name, size,
color and properties like Bold, Italic of the text available in the textbox. Use common dialog box control.
Packs/Make Cadbury Nestely Ferrreo Rocher Kitkat 20 gm 10 Rs 8 Rs. 20 Rs 7 Rs. 50 gm 25 Rs 16 Rs. 50 Rs 13 Rs. Use option button to select pack and make of chocolate.
18) Create a project that calculates the total of fat, carbohydrates and
protein in calories. Allow user to enter (in text boxes) the grams of fats, carbohydrates and protein. Each gram of fat is nine calories, where as gram of protein and carbohydrates is four calories. Display the total calories for the current food item in a label. Use other two labels to display an accumulated sum of the calories and count of the items entered. Form: The form should have three textboxes for the user to enter the grams of each category. Include labels next to each text box indicating what the user is to enter. Include a command button to Calculate, to Clear the text boxes and to Exit. Code: Write the code for each command button.
19) Create a project that calculates the postal charges if the handling
charges are as follows: 1. Rs. 30/- per kg up to 50 kg 2. Rs. 25/- per kg for 51 to 100 kg 3. Rs. 15/- per kg for 101 to 1000 kg 4. Rs. 10/- per kg for weight above 1000kg. Form: use text boxes with proper label to accept a package identification code and weight of package. Include a command button to calculate the postal charges and display it in a message box.
20) Create a project that allows the user to enter (in textboxes) three
integers. On click of command button Greatest the greatest of three integers must be displayed in a message box. On clicking the command
button Least the least of three integers must be displayed in a message box.
22) Southern Railways has introduced some more trains to mark the
50th anniversary of independence. Create a project to add the names of new trains to the list of trains as well as delete the trains that will be no longer running. The user must click the ADD command button to add an item in the list and DELETE command button to delete the item from the list box. Items to be added to the list are entered in the text box. For deleting the items the item is selected from the list.
25 )Create an application which will ask the user to input his name and
a message, display the two items concatenated in a label, and change the format of the label using option buttons and check boxes for selection, the user can make the label bold,underlined or italic and change its color. Include command buttons to display the message in the label, clear the text boxes and label, print the form and exit.
26) Create a project Rn R that contains a dropdown combo box for the
coffee flavors and a list box of the syrup flavors. The controls should have labels above them containing the words coffee and syrup. Enter the initial values for the syrup flavors and coffee flavors when the form is loaded. The user will be able to add more coffee flavors to the list at run time. Include one menu item to print all the flavors and another to print only selected item from the list. These print commands belong to the File menu. Include Edit menu with commands to Add coffee flavor, remove coffee flavor, clear coffee list and display coffee count.
30) Write a VB code that will store contents of a list box in a sequential
file data.txt when the user click on the command button Save. When the user click on command button Retrieve, the contents of the file should be copied into the list box. The user must be able to add and delete the item from the list box using command buttons Add and Delete respectively.
31) Create a project to declare a class that will store code, name,
description, price and quantity of a product. Provide calculate button for calculation of the value stock(price*quantity). Display all the details along with the value of stock in a message box.
32) Ctrate a project to declare a class that will store code, name, age and
salary of employee. Provide CACULATE button for bonus calculation which is 10% of salary. Display all the details along with bonus in a message box.