单项选择题
You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to design a new control that will be used on multiple forms in the app.You need to ensure that the control meets the following requirement (1)It retrieves data from a MSSQL Server 2008 database instance. (2)It uses WPF classes to display data. (3)It uses user-customizable actions when the control is first painted on the form. What should you do?()
A.Create a new custom class for the control that is derived from the Control class.
B.Create a new custom class for the control that is derived from the UserControl class.
C.Create a new custom class for the control that is derived from the ContentControl class.
D.Create a new custom class for the control that is derived from the ContentPresenter class.
相关考题
-
多项选择题
YouaredevelopingaWindowsFormsApplicationbyusingthe.NETFramework3.5.YouplantocreateacustomizedPrintPreviewdialogboxintheapplication.Youneedtoensurethatuserscanpreviewtheirdocumentsbeforeprinting.Whichtwoactionsshouldyouperform?()
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
