单项选择题
You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to design a control for the application.You need to ensure that the control meets the following requirements:
(1)Contains the DataGridView, BindingSource, and BindingNavigator controls.
(2)Exposes the properties of the BindingSource control.
(3)Protects the properties of the DataGridView and BindingNavigator controls.
What sholud you do?()
A.Extend the Control class.
B.Extend the ContainerControl class.
C.Create protected accesses for each control property.
D.Create public accesses for the properties of the BindingSource control.
相关考题
-
单项选择题
YouarecreatingaWindowsFormsapplicationbyusingthe.NetFramework3.5Youplantodisplaydetailedhelpinstructionsforeachcontrolintheform.Youcreateahelpfile.YouconfigureaHelpProvidercomponentontheform.YouneedtodisplaythehelpfileforthecontrolthatisfocusedwhentheF1keyispressed.WhichmethodoftheHelpProviderclassshouldyoucallforeachcontrol?()
A.SetShowHelp
B.SetHelpString
C.SetHelpKeyword
D.SetHelpNavigator -
多项选择题
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. -
单项选择题
YouaredevelopingaWindowsFormsApplicationbyusingthe.NETFramework3.5.Youplantodesignacompositecustomcontrolfortheapplication.YouincludeaListBoxcontrolhasapropertythatprovidestheitemcountoftheListBoxcontrol.Youneedtoensurethatthepropertycannotbeaccessedatdesigntime.Whichattributeshouldyouuse?()
A.[Bindable(false)]
B.[DesignOnly(false)]
C.[EditorBrowsable(EditorBrowsableState.Never)]
D.[Browsable(false)]
