多项选择题
You are developing a Windows Forms Application by using the .NET Framework 3.5.You plan to create a customized Print Preview dialog box in the application. You need to ensure that users can preview their documents before printing. Which two actions should you perform?()
A.Add a PrintPreviewDialog control to the form.
B.Add a PrintPreviewControl control to the form.
C.Create and initialize a PrintDocument object on the form and then implement the PrintPage event handler.
D.Create and initialize a PrintDocument object on the form and then implement the BeginPrint event handler.
E.Set the Document property of the PrintPreviewDialog control to the PrintDocument instance that must be printed.
相关考题
-
单项选择题
YouaredevelopingaWindowsFormsApplicationbyusingthe.NETFramework3.5.Youplantodesignacompositecustomcontrolfortheapplication.YouincludeaListBoxcontrolhasapropertythatprovidestheitemcountoftheListBoxcontrol.Youneedtoensurethatthepropertycannotbeaccessedatdesigntime.Whichattributeshouldyouuse?()
A.[Bindable(false)]
B.[DesignOnly(false)]
C.[EditorBrowsable(EditorBrowsableState.Never)]
D.[Browsable(false)] -
单项选择题
YouarecreatingaWindowsFormsapplicationbyusingthe.NETFramework3.5.Youplantodevelopanewcontrolfortheapplication.YouneedtoensurethatthecontrolextendstheDataGridViewcontrolbyallowingthecellstocontainmulticoloredtext.Whatshouldyoudo?()
A.Override the OnPaint method.
B.Write a code segment to handle the CellPainting event.
C.Write a code segment to handle the CellParsing event.
D.Write a code segment to handle the RowPostPaint event. -
单项选择题
YouarecreatingaWindowsFormsApplicationbyusingthe.NETFramework3.5.YouplantocreateaWindowsInstallerpackageforaWindowsFormsapplication.ThepackagewillbedeployedonWindowsVistacomputers.Youneedtoensurethatduringdeploymenttheinstallationdoesnotelevateprivilegesoftheuserinstallingtheapplication.Whatshouldyoudo?()
A.Create a custom action and set the NoImpersonate property to true
B.Create a custom action and set the NoImpersonate property to false
C.Create a manifest and set the RequestedExecutionLevel level attribute to AsInvoker
D.Create a manifest and set the RequestedExecutionLevel level attribute to AsAdministrator
