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 9E
Program Plan Intro
Form design:
- Open Microsoft Visual Studio.
- Select Visual Basic and click Windows Application.
- Name the project as “Password_Index 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 | Password |
txtWords | Text | (Empty) |
lblPassword | Text | (Empty) |
btnCreate | Text | Create password |
btnExit | Text | Exit |
- Add the required controls to the form.
- Add two button controls to create the password and exit the program respectively.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
In 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.
In this exercise, you modify one of the Seminars applications from Chapter 4’s Apply lesson. Open the Seminars Solution.sln file contained in the Seminars Solution-CheckBox folder. Create an event-handling Sub procedure named ClearAmountDue and associate it with each check box’s CheckChanged event. Then, create a function that determines which (if any) check boxes are selected and then adds the associated fee to the total due. The function should return the total due to the statement that invoked it. Also, make the necessary modifications to the btnCalc_Click procedure’s code. Save the solution and then start and test the application. In VB please.
Code Given:
Option Explicit OnOption Strict OnOption Infer Off
Public Class frmMain
Private Sub btnCalc_Click(sender As Object, e As EventArgs) Handles btnCalc.Click' Calculate and display the amount due.
Dim intAmountDue As Integer
' Determine which (if any) check boxes are selected' and add the associated fee to the amount due.If…
In this exercise, you modify the Gross Pay application from this chapter’s Focus lesson. Use Windows to make a copy of the Gross Solution folder. Rename the copy Gross Solution-Functions. Open the Gross Solution.sln file contained in the Gross Solution-Functions folder. Change the two independent Sub procedures to functions named GetWeekly and GetTwicePerMonth. Modify the code so that the btnCalc_Click procedure (rather than the two functions) displays the gross pay in the lblGross control. Save the solution and then start and test the application. Need this in VB please.
Code given:
Option Explicit OnOption Strict OnOption Infer Off
Public Class frmMain' Independent Sub procedures.
Private Sub btnCalc_Click(sender As Object, e As EventArgs) Handles btnCalc.Click' Calls independent Sub procedures to calculate and display the gross pay.
End Sub
Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.ClickMe.Close()End Sub
Private Sub txtSalary_Enter(sender As…
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
- Write a statement that uses the Contains method to determine whether the strAddress variable contains the string “Elm St.” (in uppercase, lowercase, or a combination of uppercase and lowercase). Assign the return value to the blnIsContained variable.arrow_forwardThe strAmount variable contains the string “1,234”. Write a statement that uses the Remove method to change the variable’s contents to “1234”.arrow_forwardIn this exercise, you modify the Gross Pay application from this lesson. Use Windows to make a copy of the Gross Pay Solution folder. Rename the copy Modified Gross Pay Solution. Open the Gross Pay Solution (Gross Pay Solution.sln) file contained in the Modified Gross Pay Solution folder. Open the designer and Code Editor windows. Locate the form’s Load event procedure. Change both For…Next statements to Do…Loop statements. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.arrow_forward
- The DateTime.TryParse method will successfully convert the string “8/22/1990” to a DateTime object. Question 45 options: True Falsearrow_forwardFor each artist who is currently in a band and is under 30 years old: * Return the artist’s full name, gender, date of birth (formatted like "06/12/2019"), and the name of the band they are in with date joined formatted like "July 18, 2022". Order the results by artist name * You will not get full points if you just say something like DOB > '1992-07-18' (hard coded thirty tears ago today). The query would not age well! Tables and values are in the picture attached.arrow_forwardThe syntax of a statement that invokes (calls) an independent Sub procedure is ____. a. procedureName([argumentList], dataType) b. procedureName([argumentList]) c. procedureName([argumentList]) As dataType d. procedureName{[parameterList]}arrow_forward
- . The O’Neill High School Performing Arts Center auditorium contains 20 rows (numbered 1through 20) with 40 seats each (numbered 1 through 40). Write an application that allows auser to continuously enter a row and seat request until a sentinel value is entered. If the rowor seat number is too high, issue an error message. Otherwise, determine whether the seat hasalready been reserved. If so, display an error message; if not, then charge the user $7.50 for aticket and display a running total of the user’s purchase. When the user enters a sentinel,display the number of seats taken and the number still available in the auditorium.arrow_forwardSOSL Assignment Salesforce: In this assignment you have to find the all the account or contact where the 'test' key in find either in account name or in contact first name and in last name.arrow_forwardExtra 6-1 Develop the Temperature Converter In this exercise, you’ll use radio buttons to determine whether the conversion is from Fahrenheit to Celsius or vice versa. You’ll also modify the DOM so the labels change when a radio button is clicked, and the page displays an error message when the user enters invalid data. 1. Open the application in this folder: exercises_extrach06convert_temps 2. Note that the JavaScript file has some starting JavaScript code, including the $() function, three helper functions, three event handler functions, and a DOMContentLoaded event handler that attaches the three event handlers. 3. Review how the toCelsius() and toFarhenheit() event handler functions call the toggleDisplay() helper function and pass it strings to display. Also note that the toggleDisplay() helper function and the convertTemp() event handler function are incomplete. 4. Code the toggleDisplay() function so it changes the text in the labels for the text boxes to the values in the…arrow_forward
- Create an application that allows you to enter n customer names and phone numbers.arrow_forwardAccess: In the first blank column, add a new column named Time on Job that displays the difference between Now() and Hire Date. Divide the result by 365.25 to calculate the number of years employee has worked. arrow_forwardRewrite the Loop clause from Question 1 using the Until keyword.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:CengageCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
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
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L