单项选择题
You are developing a Windows Forms Application by using the .NET Framework 3.5.You plan to design a composite custom control for the application. You include a ListBox control has a property that provides the item count of the ListBox control. You need to ensure that the property cannot be accessed at design time. Which attribute should you use?()
A.[Bindable(false)]
B.[DesignOnly(false)]
C.[EditorBrowsable(EditorBrowsableState.Never)]
D.[Browsable(false)]
相关考题
-
单项选择题
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.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 -
单项选择题
YoucreateWindowsFormsapplicationbyusingthe.NetFrameWork3.5YouplantodeployanewapplicationtoclientcomputersthatusetheWindowsVistaoperatingsystem.Youneedtoensurethattheusercaninstalltheapplicationwithoutbeingpromptedforeelevatedpermission.Whatshouldyoudo?()
A.Sign the deployment manifest by using an Authenticode certificate.Publish the application to a CD-ROM.Install the application on each client computer from the CD-ROM
B.Sign the deployment manifest by using an Authenticode certificate.Publish the application to a server on the network.Install the application on each client computer.
C.Add the requestedExecutionLevel="highestAvailable" attribute to the deployment.Publish the application to a server on the network.Install the application on each client computer.
D.Add the requestedExecutionLevel="requiresAdministrator" attribute to the deployment.Publish the application to a server on the network.Install the application on each client computer.
