Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 2, Problem 6RQ
Program Description Answer
The “TextBox” control is used to give an area in the form for the user to enter a name.
Hence, correct answer is option “C”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Which of the following controls will provide an area in the form for the user to enter a name? a. button b. label c. text box d. All of the above.
Which of the following selects the Cat item, which appears third in the cboAnimal control? a. cboAnimal.SelectedIndex = 2 b. cboAnimal.SelectedItem = "Cat" c. cboAnimal.Text = "Cat" d. All of the above.
Which of the following statements displays a dialog box that prompts the user for the name of a city, and then assigns the user’s response to the strCity variable?
Select one:
a. InputBox (“Enter the city name”,”City”, strCity)
b. strCity = InputBox (“Enter the city name”,,”City”)
c. none of the choices
d. InputBox (“Enter the city name”, strCity)
Chapter 2 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 2 - Prob. 1MQ1Ch. 2 - Prob. 2MQ1Ch. 2 - Prob. 3MQ1Ch. 2 - Prob. 4MQ1Ch. 2 - Prob. 1MQ2Ch. 2 - Prob. 2MQ2Ch. 2 - Prob. 3MQ2Ch. 2 - Prob. 4MQ2Ch. 2 - Prob. 1MQ3Ch. 2 - Prob. 2MQ3
Ch. 2 - Prob. 3MQ3Ch. 2 - Prob. 4MQ3Ch. 2 - Prob. 1RQCh. 2 - Prob. 2RQCh. 2 - Prob. 3RQCh. 2 - Prob. 4RQCh. 2 - Prob. 5RQCh. 2 - Prob. 6RQCh. 2 - Prob. 7RQCh. 2 - Prob. 8RQCh. 2 - Prob. 9RQCh. 2 - Prob. 10RQCh. 2 - Prob. 11RQCh. 2 - Prob. 12RQCh. 2 - Prob. 13RQCh. 2 - Prob. 14RQCh. 2 - Prob. 15RQCh. 2 - Prob. 16RQCh. 2 - Prob. 17RQCh. 2 - Prob. 18RQCh. 2 - Define sentence capitalization.
Ch. 2 - Prob. 20RQCh. 2 - Prob. 2ECh. 2 - Create an application that calculates and displays...Ch. 2 - Prob. 4ECh. 2 - Create an application that calculates and displays...
Knowledge Booster
Similar questions
- Which of the following can be used to clear the text contained in the lblTax control? lblTax = String.Empty lblTax.Text = String.Empty lblTax.ClearText lblTax.Text.Cleararrow_forwardWhich property is used to give a button control a more meaningful name? a. Application b. Caption c. Name d. Textarrow_forwardWhich of the following should have their names changed to more meaningful ones? a. all controls that will be coded b. all controls that will be referred to in code c. the form d. All of the abovearrow_forward
- Which property allows you to specify a specific character that will always be displayed in a text box, no matter what character the user types? a. Char b. CharPassword c. Password d. PasswordChararrow_forwardWhich of the following can be used to clear the text contained in the lblTax control? a. lblTax = String.Empty b. lblTax.Text = String.Empty c. lblTax.ClearText d. lblTax.Text.Cleararrow_forwardWhich of the following statements displays a dialog box that prompts the user for a name, and then assigns the user’s response to the strPet variable?a. InputBox("Name:", "Pet Name", strPet) b. InputBox("Name:", strPet) c. strPet = InputBox("Name:", "Pet Name") d. none of the abovearrow_forward
- Which of the following statements is false? a. The text contained in an identifying label should be left-aligned within the label. b. An identifying label should be positioned either above or to the right of the control it identifies. c. Identifying labels should use sentence capitalization. d. Identifying labels should end with a colon (:).arrow_forwardWhich of the following statements can be used in a text box’s KeyPress event to cancel the key pressed by the user? a. e.Cancel = True b. e.Handled = True c. e.KeyChar = True d. none of the abovearrow_forwardWhich of the following is a valid header for a procedure that receives a copy of the value stored in a String variable? a. Private Sub DisplayName(ByCopy strName As String) b. Private Sub DisplayName ByVal(strName As String) c. Private Sub DisplayName(ByVal strName As String) d. None of the above.arrow_forward
- Which of the following can be accomplished using the Format menu? a. aligning the borders of two or more controls b. centering one or more controls horizontally on the form c. making two or more controls the same size d. All of the above.arrow_forwardWhich property controls the text displayed in a form’s title bar? a. Caption b. Text c. Title d. TitleBararrow_forwardWhich of a form’s events is triggered when you click the Close button on its title bar? a. FormClose b. FormClosing c. FormExit d. None of the above.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 LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,