Sei sulla pagina 1di 23

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 << Go to card set details ch 2


Question 1

Multiple-choice
________ is a help screen displayed for the currently selected item

Select the best answer


picturebox text align Question 2 sizing handles context-sensitive help

Multiple-choice
an apostrophe in code marks the start of a ________

Select the best answer


backcolor image Question 3 sizemode comment

Multiple-choice
visible is a ________ property, which means it can only hold one of two values; true or false

Select the best answer


comment boolean Question 4 runtime view code

Multiple-choice
to delete a control during design time, select it and press the ________ key.

Select the best answer


delete image Question 5 text font

Multiple-choice
the ________ property causes the label control to resize automatically to accommodate the amount of text in the text property

Select the best answer


runtime boolean Question 6 view code autosize

Multiple-choice
Explain the difference between an object's text and its name

Select the best answer


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. By placing code in the control's Click event procedure Question 7 sizing handles

picturebox

Multiple-choice
when the ________ button is selected on the solution explorer window, it opens the code window

Select the best answer


view code text align Question 8 sizemode Me.close()

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 answer


template titlebar Question 9 comment sizemode

Multiple-choice
visual basic automatically provides a code ________ , which is the first and last lines of an event procedure

Select the best answer


runtime comment Question 10 view code template

Multiple-choice
you commonly display messages on a form by setting the value of a label control's ________ property

Select the best answer


image comment text runtime

Grade this quiz!

Potrebbero piacerti anche