单项选择题
You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to develop a new control for the application.You need to ensure that the control extends the DataGridView control by allowing the cells to contain multicolored text.What should you do?()
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. -
单项选择题
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.
