Post on 27-Oct-2014
transcript
The ________ property determines how a label control's text is aligned.
text align
a picturebox control's ________ property lists the name of the file containing the graphic image
image
a picturebox control's ________ property determine show the graphic image will be positioned and scaled to fit the control's bounding box
sizemode
when set to ________ , the TextAlign property causes text to appear in the bottom right area of a label control
bottomright
the contents of a form's text property is displayed on the form's ________ .
titlebar
anytime you select an existing control, ________ appear, which you use to re size the control
sizing handles
a controls ________ is a transparent rectangular area that defines the control's size
bounding box
a labels control's ________ property establishes the font, style, and size of the label's displayed font
font
to delete a control during design time, select it and press the ________ key.
delete
the ________ control is used to display graphic images
picturebox
the SizeMode property is set to ________ by default
normal
when the ________ button is selected on the solution explorer window, it opens the code window
view code
clicking the ________ button in the properties window causes related properties to be listed in groups
categorized
visible is a ________ property, which means it can only hold one of two values; true or false
boolean
an apostrophe in code marks the start of a ________
comment
the equal sign is known as the ________ operator. it copies the value on its right into the item on its left
assignment
in an assignment statement, the name of the item receiving the value must be on the ________ side of the operator
left
visual basic automatically provides a code ________ , which is the first and last lines of an event procedure
template
the ________ statement causes the application to end
Me.close()
the ________ property establishes the background color for a label control's text
backcolor
the ________ property establishes the color of the type for a label control's text
forecolor
the ________ property allows you to prevent the user from resizing, minimizing, or maximizing a form, or closing a form using its Close button
FormBorderStyle
when you ________ the controls on a form, they cannot be accidentally moved at design time
lock
you display text in a form's title bar by setting the value of the form's ________ property.
text
you commonly display messages on a form by setting the value of a label control's ________ property
text
the ________ property causes the label control to resize automatically to accommodate the amount of text in the text property
autosize
________ is a help screen displayed for the currently selected item
context-sensitive help
________ errors are found while an application is running
runtime
Explain the difference between an object's text and its name
The Text property simply displays text on a control. The Name property, however, is the control's internal name. You access and manipulate a control in code by using its name.
List three ways to run an application within the visual studio environment
• By clicking the start button on the toolbar
• By clicking the Start Debugging command on the Debug menu
• By pressing the F5 key
List three ways to display the code window
• Click the view code button on the Solution Explorer window.
• Click View on the menu bar, then click the Code command.
• Press the F7 key while the Form window is visible.
Why is the code between the first and last lines of an event procedure usually indented
So the reader can easily see that the code lines belong to the procedure
How do you make a picture box control respond to mouse clicks?
By placing code in the control's Click event procedure
Quiz for Visual Basic ch 2
<< Go to card set details
Question 1
Multiple-choice
________ is a help screen displayed for the currently selected item
Select the best answerpicturebox sizing handles
text align context-sensitive help
Question 2
Multiple-choice
an apostrophe in code marks the start of a ________
Select the best answerbackcolor sizemode
image comment
Question 3
Multiple-choice
visible is a ________ property, which means it can only hold one of two values; true or false
Select the best answercomment runtime
boolean view code
Question 4
Multiple-choice
to delete a control during design time, select it and press the ________ key.
Select the best answerdelete text
image font
Question 5
Multiple-choice
the ________ property causes the label control to resize automatically to accommodate the amount of text in the text property
Select the best answerruntime view code
boolean autosize
Question 6
Multiple-choice
Explain the difference between an object's text and its name
Select the best answerThe Text property simply displays text on a control. The Name property, however, is the control's internal name. You access and manipulate a control in code by using its name.
sizing handles
By placing code in the control's Click event procedure picturebox
Question 7
Multiple-choice
when the ________ button is selected on the solution explorer window, it opens the code window
Select the best answerview code sizemode
text align Me.close()
Question 8
Multiple-choice
a picturebox control's ________ property determine show the graphic image will be positioned and scaled to fit the control's bounding box
Select the best answertemplate comment
titlebar sizemode
Question 9
Multiple-choice
visual basic automatically provides a code ________ , which is the first and last lines of an event procedure
Select the best answerruntime view code
comment template
Question 10
Multiple-choice
you commonly display messages on a form by setting the value of a label control's ________ property
Select the best answerimage text
comment runtime
Grade this quiz!