文档介绍:Exam : 070-526
Title : Microsoft .NET Framework - Windows
-Based Client Development
Ver :
070-526
QUESTION 1:
You are creating a Windows Form that contains several ToolStrip controls.
You need to add functionality that allows a user to drag any ToolStrip control from one
edge of the form to another.
What should you do?
A. Configure a ToolStripContainer control to fill the form.
Add the ToolStrip controls to the ToolStripContainer control.
B. Configure a Panel control to fill the form.
Set the Anchor properties of the ToolStrip controls to Top, Bottom, Left, Right.
C. Add a ToolStrip controls to another ToolStrip control that is hosted by a
ToolStripControlHost control.
D. Add the ToolStrip controls to the form.
Set the Anchor properties of the ToolStrip controls to Top, Bottom, Left, Right.
Set the FormBorderStyle property of the form to SizableToolWindow.
Answer: A
QUESTION 2:
You need to create a Windows Forms application that uses a nonrectangular form as its
user interface.
What should you do?
A. Set the FormBorderStyle property of the form to None.
Set the BackgroundImage property of the form to a bitmap file that represents the shape
you want form to take.
Set the TransparencyKey property to the background color of the bitmap file.
B. Set the FormBorderStyle property of the form to None.
Set the BackgroundImage property of the form to a bitmap file that represents the shape
you want the form to take.
Set the TransparencyKey property to Transparent.
C. Set the FormBorderStyle and BackgroundImageLayout properties to None.
Set the BackgroundImage property of the form to a bitmap file that represents the shape
you want the form to take.
Set the TransparencyKey property to Transparent.
D. Set the FormBorderStyle property to None and the BackColor property to Control.
Set the BackgroundImage property of the form to a bitmap file that represents the shape