BackColor colors the background; ForeColor colors the text.
★ Must-know
Further detail
To import an image, select the PictureBox, open its Image property and resource selector, choose Import, locate and select the file, and confirm with Open and OK.
🔄 To stretch an image to the PictureBox:
Multiple images can be placed in the program's Resources folder.
Locate, import, display, then size the image.
★ Must-know
Further detail
🔄 To hide a PictureBox in the Properties window:
🔄 To disable an object in the Properties window:
Visible controls display; Enabled controls whether an object is enabled.
★ Must-know
Further detail
To enter a statement with IntelliSense, type the object name, continue entering letters until the desired entry is selected, press the key for the next character, and repeat the selection process for the desired property or value.
When a user taps or clicks a button while a program is running, the action associated with the corresponding coding statement occurs.
★ Must-know
Further detail
🔄 Insert comments after generated event code by following these steps:
🔄 Add an introductory program-name comment by following these steps:
🔄 Correct the illustrated missing-apostrophe error by following these steps:
Using IntelliSense considerably reduces the likelihood of coding errors, and forgetting an apostrophe in a comment is one possible error.
A missing apostrophe turns comment text into code and triggers a build error
🔄 Enter the Close statement by following these steps:
Left and right parentheses immediately following a procedure name identify a Visual Basic statement as a procedure call statement.
★ Must-know
Further detail
Take a 11-question practice quiz on Visual Basic Event Coding, with every answer explained.
1. A button has a blue background and black lettering. Which property controls the blue area behind the lettering?
2. A developer wants a Windows Form's background to be white. Which sequence uses the form's color picker as described?
Memorize the key concepts of Visual Basic Event Coding with 10 flashcards.
What color does an object's BackColor display?
Its background color.
What color does an object's ForeColor display?
Its text color.
What is a PictureBox object used to display?
A graphic image.
Upload your class notes and Revizly writes a study guide, a quiz and flashcards in about a minute.
Study guide maker