Exam 12: Using Controls

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When working with a Form in the IDE, how do you place new Control s on the Form , and how can you adjust them precisely to align with existing Control s?

Free
(Essay)
4.9/5
(35)
Correct Answer:
Verified

When you place Control s on a Form in the IDE, you can drag them to any location to achieve the effect you want. When you drag multiple Control s onto a Form , blue snap lines appear and help you align new Control s with others already in place. Snap lines also appear when you place a Control closer to the edge of a container than is recommended. You also can use the Location property in a Control 's Properties list to specify a location.

How would you declare a named instance of a Font class, and what arguments can be used within the constructor? Show the declaration for a font named fancyFont that is size 24, bold, underlined, and Helvetica.

Free
(Essay)
4.9/5
(44)
Correct Answer:
Verified

One version of the Font constructor requires two arguments: a string and a float . The string is the name of the font. The float represents the font size. For example:
bigFont = new Font("Courier New"), 16.5f;
You also can create a Font using three arguments, adding FontStyle as in:
Font arialItalic = new Font("Arial"), 24, FontStyle.Italic;
You can combine multiple styles using the pipe ( | . For example, the following code creates a Font that is bold and underlined:
Font fancyFont =
new Font("Helvetica"), 24, FontStyle.Bold | FontStyle.Underline;

The ____________________ property of the PictureBox control sets the image that appears in the control.

Free
(Short Answer)
4.8/5
(45)
Correct Answer:
Verified

Image

CheckBox and RadioButton objects have a ____ method that is called when the object is clicked by the user.

(Multiple Choice)
4.8/5
(36)

When designing a Form , you will usually use the ____ design features in the IDE instead of typing code statements.

(Multiple Choice)
4.8/5
(34)

What are some of the commonly used LinkLabel properties, and what is the default event generated when the link is clicked by a user?

(Essay)
4.9/5
(40)

A(n) ____________________ is a Control in which you can display graphics from a bitmap, icon, JPEG, GIF, or other image file type.

(Short Answer)
4.7/5
(37)

A ____ provides the capability to link the user to other sources, such as Web pages or files.

(Multiple Choice)
4.9/5
(31)

A ____ is similar to a ListBox but with check boxes appearing to the left of each item.

(Multiple Choice)
4.8/5
(44)

Explain the selection options that can be controlled by setting the SelectionMode property of a ListBox .

(Essay)
4.8/5
(33)

In a MenuStrip , if you create each main menu item with a(n) ____ in front of a unique letter, then the user can press Alt and the given letter to activate the menu choice as an alternative to clicking it with the mouse.

(Multiple Choice)
4.9/5
(39)

Setting the ____ property attaches a Control to the side of a container so that the Control stretches when the container's size is adjusted.

(Multiple Choice)
4.8/5
(37)

You use the ____ class to change the appearance of printed text on your Form s.

(Multiple Choice)
4.9/5
(29)
Match each item with a statement below:
The method executed when a click event is fired from a LinkLabel
Anchor
The default event for MonthCalendar
ListBox
Gets or sets a value indicating whether the control has captured the mouse
MenuStrip
Correct Answer:
Verified
Premises:
Responses:
The method executed when a click event is fired from a LinkLabel
Anchor
The default event for MonthCalendar
ListBox
Gets or sets a value indicating whether the control has captured the mouse
MenuStrip
A property that holds the number of items in a ListBox
Control.Capture
A property that can be used to fix a Control at a given distance from the side of a container when the container is resized
Items.Count
Displays a list of items that the user can select by clicking
Dock
A class that provides containment and cleanup for other objects
Component
A property that can be used to attach a Control to the side of a container so that the Control will stretch when the container is resized
DateChanged()
A horizontal list of general options that appears under the title bar of a Form or Window
LinkClicked()
(Matching)
4.9/5
(41)

A LinkLabel is similar to a Label in that it is a parent of Label .

(True/False)
4.7/5
(28)

What are the similarities and differences between using a GroupBox and using a Panel to group related Control s on a Form ?

(Essay)
4.8/5
(33)

Control objects such as Form s and Button s, like all other objects in C#, ultimately derive from the ____________________ class.

(Short Answer)
4.8/5
(41)

What are some of the methods that you can use with the SelectionStart and SelectionEnd properties of MonthCalendar to calculate new dates? For example, if you wanted to calculate the date of an event that will occur 10 days from the SelectionStart date, what MonthCalendar method could you use?

(Essay)
4.8/5
(39)

When you size a ListBox so that all the items cannot be displayed at the same time, a scroll bar is provided automatically on the side.

(True/False)
4.8/5
(36)

A ____ is similar to a ListBox , except that it displays an additional editing field to allow the user to select from the list or to enter new text.

(Multiple Choice)
4.7/5
(44)
Showing 1 - 20 of 42
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)