![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_largeCoverImage.gif)
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
Chapter 7, Problem 7E
Program Plan Intro
Form design:
- Open Microsoft Visual Studio.
- Select Visual Basic and click Windows Application.
- Name the project as “Zip Project”.
- Store the file in desired location.
- The created project is now displayed with a form in the name of Form1.
- Rename the Form1 as “Main Form” and add the necessary components.
- In property window, change the Form name and add changes for Form elements properties.
- Click the File menu->Save All.
View of the form design in the IDE:
The form control properties in the properties window are as follows:
Object | Property | Setting |
Form1 | Text | Zip Code |
txtZip | Text | (Empty) |
lblStatus | Text | (Empty) |
btnDisplay | Text | Validate |
btnExit | Text | Exit |
- Add the required controls to the form.
- Add two button controls to validate the Zip code and exit the program respectively.
Expert Solution & Answer
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Students have asked these similar questions
Create a form having one textbox and a submit button.The user must be able to enter his age. UsingFILTER_VALIDATE_INT, check if the age entered by the useris valid or not. Age between 26 and 56 should beconsidered as valid. If age entered is valid, display “Age isvalid” otherwise display “Age is not valid”
When entered in the txtName_Enter procedure, which of the following will select all of the text box’s existing text? a. txtName.SelectAll() b. txtName.SelectAllText() c. SelectAll().txtName d. None of the above.
A web form includes a field with the id numberGuests into which the user is instructed to enter a number between 20 and 200. If the checkValidity() method returns false when called on this field, _____.
a.
you should check the values of thevalidity.rangeOverflow,validity.rangeUnderflow, andvalidity.typeMismatchproperties for the field to determine why it is invalid
b.
you should check the values of the validity.tooLong, validity.tooShort, and validity.stepMismatch properties for the field to determine why it is invalid
c.
then you know that the validity.valid property for this field will evaluate to true
d.
this means that it is not necessary to perform further validation on the field
Chapter 7 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 7 - Which of the following statements changes the...Ch. 7 - Prob. 3RQCh. 7 - Prob. 6RQCh. 7 - Prob. 7RQCh. 7 - Prob. 11RQCh. 7 - Prob. 12RQCh. 7 - Prob. 14RQCh. 7 - Which of the following expressions evaluates to...Ch. 7 - Which of the following statements declares an...Ch. 7 - Which of the following statements generates a...
Knowledge Booster
Similar questions
- Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap02 folder. Plan and design an application of your choice. The only requirement is that you must follow the minimum guidelines listed in Figure 2-22. Before starting the application, be sure to verify the name of the startup form. Save the solution and then start and test the application.arrow_forwardIn this exercise, you modify the Cerruti Company application from this lesson. Use Windows to make a copy of the Cerruti Solution folder from this lesson. Rename the copy Modified Cerruti Solution. Open the Cerruti Solution (Cerruti Solution.sln) file contained in the Modified Cerruti Solution folder. Open the designer and Code Editor windows. Modify the code so that the GetFwt function (rather than btnCalc_Click procedure) determines the selected radio button. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.arrow_forwardCreate a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap10 folder. Plan and design an application of your choice. The only requirement is that you must follow the minimum guidelines listed in Figure 10-45. Before starting the application, be sure to verify the name of the startup form. Save the solution and then start and test the application.arrow_forward
- Write a statement that assigns the number of items in the lstPrices control to the intNumPrices variable.arrow_forwardWhich of the following Loop clauses will stop the loop only when the intAge variable’s value is less than the number 0?a. Loop While intAge >= 0b. Loop Until intAge <= 0 c. Loop Until intAge >= 0d. none of the abovearrow_forwardWhich of the following declares a procedure-level String variable? a. Dim String strCity b. Dim strCity As String c. Private strCity As String d. Both b and c.arrow_forward
- USe Form CS Create an application consists of 1 form with 30 controls: 1 Textbox 3 Radio buttons 2 Buttons 5 Checkboxes Code must be written to respond to the user clicking on the buttons, radio buttons and check boxes. Project requirements: 1. when the application starts the focus must be at the flavor selection list with the first flavor selected, one scoop selected and no toppings selected and the correct total displayed 2. when the "Exit" button is clicked, the application ends 3. the total will be computed and displayed when the user makes a scoop selection and/or toppings selection. 4. when the "Clear" button is clicked, the textbox is cleared. Focus goes to the listbox.. The first flavor is selected, one scoop is selected and no toppings are selected and the correct total is displayed 5. the total dollar amount must be formatted as currency 6. allow multiple flavors to be selected 7. the otal will times be an eflect the ber of scoops and toppings as they are selectedarrow_forwardCreate a Windows Forms application. Use the following names for the project and solution, respectively: Florist Project and Florist Solution. Save the application in the VB2017\Chap01 folder.Change the form file’s name to Main Form.vb.arrow_forwardQ2\design a form contains shape and command buttons "what is this" such that when click on the command button the name of this shape appears in message box.arrow_forward
- the calculation form should appear (figure 4) containing the following buttons :(logout (once clicked should take you to login form), Compute (should calculate the subtotal, Vat, discount ,total price and display details on a richbox), Reset(clear the form), Print(should print slip after transaction), New Stock(take you to next form to add new stock in table) and New User (should take you to the next form to add new user in the login_details table). The New user button once clicked, should show a windows form with a tab control on the first tab it should ask the user to input personal information and store the data in the same table as the login and signup table storing (ID as the primary key(number), Name(text), Lastname(text), Date of birth(date), Gender(text), Picture(image), Username(text) and Password(text). The second tab should ask the user for the following details (Address (text), Contact number(text), Qualification(text), Net Profit(currency)) and store data on a table named…arrow_forwardHTLM 5 FORMS Give the codingarrow_forwardWrite a statement that assigns the number 2.5 to the dblNum variable.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageNew Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage Learning
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
![Text book image](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L