Prefix for a textbox
txt
What does the Text property control
What the user sees (the displayed text)
Object names should be completely lowercase.
False (use camelCase for prefixes).
Write the line of code to show a message box that says “Hello.”
MsgBox("Hello")
What property changes the window’s title?
The Text property of the form.
Prefix for a command button
btn
What does the Name property control?
How the programmer refers to the object in code.
Labels can display text but users cannot type into them.
True
What line of code closes the program?
End
Which control lets you pick only one option?
Option or radio
Prefix for a groupbox
grp
What's a good Name for a textbox where a user enters their pet's name
txtPetName
Textboxes can hold multiple lines by default.
False. Can only hold one line, unless you change Multiline property
Write the exact code for an Exit button with the message “Goodbye!”
MsgBox("Goodbye!")
End
Which control lets you pick multiple options?
Checkboxes
Prefix for a label
lbl
What would a good Text be for a textbox where a user enters their pet's name?
Option buttons and checkboxes are the same.
False (option/radio = one choice, checkbox = multiple).
Debug this line of code: MsgBox(Have a great day!)
Missing quotation marks
Which control is best for displaying text instructions that the user cannot edit?
Prefix for an option (radio button)
rdo
Why is it important to give objects meaningful names?
So your code is readable to you and others.
So it’s easier to write and debug (you don’t have to guess what TextBox1 means).
So it’s faster to find the right control when your program has many objects.
So your program is organized and professional, like real-world coding standards.
The Exit button requires a prefix of btn
True
Debug this code:
Private Sub btnExit_Click(...) Handles btnExit.Click
MsgBox("Goodbye!")
Close()
End Sub
Close() should be End
What property changes the background color of a form?