单项选择题
You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to develop a custom control for the application. The control will be a composite control.Your need to derive from the class that will create the control by using the minimum amount of development effort.What should you do?()
A.Derive from the Control class.
B.Derive from the UserControl class.
C.Derive from the FrameworkElement class.
D.Derive from the ContainerControl class.
相关考题
-
单项选择题
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.Youplantodevelopanewcontrolfortheapplication.ThecontrolwillhavethesamepropertiesasaTextBoxcontrol.Youneedtoensurethatthecontrolhasatransparentbackgroundwhenitispaintedonform.Youwanttoachievethisgoalbyusingtheminimumamountofdevelopmenteffort.Whatshouldyoudo?()
A.Create a new class that is derived from the Control class.Call the SetStyle method in the constructor.
B.Create a new class that is derived from theTextBox control class.Override the OnPaint method in the constructor.
C.Create a new class that is derived from the Control class.Set the BackColor property of the control to Transparent.Call the SetStyle method in the constructor.
D.Create a new class that is derived from theTextBox control class.Set the BackColor property of the control to Transparent in the constructor.Call the SetStyle method in the constructor. -
多项选择题
YouarecreatingaWindowsFormsApplicationbyusingthe.NETFramework3.5.Yourapplciationwillbeusedbyagovernmentdepertment.Youneedtoensurethattheapplicationmeets"accessibilty"requirements.Whichthreeactionsshouldyouperform?()
A.Expose keyboard focus visually and programmatically.
B.Use the NeutralResourceLanguageAttribute attribute in the assembly.
C.Provide documented keyboard access to all application features.
D.Set all the colors to primary colors when the high contrast mode is on.
E.Display all user interface elements by using the system color scheme when high contrast mode is off.
F.Either display all visual cues or create sound effects for any information.
