多项选择题
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.
点击查看答案
相关考题
-
单项选择题
YouarecreatingaWindowsFormsapplicationbyusingthe.NetFramework3.5.Youplantodisplaydetailedhelpinstructionsforeachcontrolintheform.Youcreateahelpfile.YouconfigureaHelpProvidercomponentontheform.YouneedtodisplaythehelpfileforthecontrolthatisfocusedwhentheF1keyispressed.WhichmethodoftheHelpProviderclassshouldyoucallforeachcontrol?()
A.SetShowHelp
B.SetHelpString
C.SetHelpKeyword
D.SetHelpNavigator -
单项选择题
You are developing a component by using the .NET Framework 3.5.The component provides a method named PrintPayroll.The component will be installed with full trust on the computer of the user. You need to ensure that the component can print without granting additional permissions to the calling application.Which code segment should you use?()
A.A
B.B
C.C
D.D -
单项选择题
You are creating a Windows Forms application using the .NET Framework 3.5.You implement the PrintPage page event for a form.The users must be able to print the pages by using the Landscape orientation.You need to ensure that the users can set the page settings before printing. Which code segment should you use?()
A.A
B.B
C.C
D.D
