单项选择题
You are creating a Windows Forms application by using the .NET Framework 3.5. You plan to develop a new control for the application.The control will have the same properties as a TextBox control.You need to ensure that the control has a transparent background when it is painted on form.You want to achieve this goal by using the minimum amount of development effort.What should you do?()
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. -
单项选择题
You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to deploy a new Applciation.You need to ensure that on deployment, the application meets the following requirements; (1)It is executed on the client computer. (2)It is removed from the client computer after the application closed. (3)It is not displayed in the Add/Remove programs panel on the client computer. What sould you do?()
A.Deploy the application to a central network server.- Access the application by using hte Remote Desktop Connection tool.
B.Deploy the application by using the ClickOnce technology.- Use the Mage.exe tool to set the Online Only option in the deployment manifest.
C.Deploy the application by using the ClickOnce technologoy.- Set the Install attiribute of the deployment tag to true in the deployment manifest.
D.Deploy the application to a CD-ROM by using the ClickOnce technology. - Execute the application from the CD-ROM.
