单项选择题
You are creating a Windows Forms application by using the .NET Framework 3.5. You create a new form in your application.You add 100 controls at run time in the Load event handler of the form. Users report that the form takes a long time to get displayed. You need to improve the performance of the form. What should you do?()
A.Call the InitLayout method of the form before adding all the controls.Call the PerformLayout method of the form after adding all the controls.
B.Call the InitLayout method of the form before adding all the controls.Call the ResumeLayout method of the form after adding all the controls.
C.Call the SuspendLayout method of the form before adding all the controls.Call the PerformLayout method of the form after adding all the controls.
D.Call the SuspendLayout method of the form before adding all the controls.Call the ResumeLayout method of the form after adding all the controls.
相关考题
-
单项选择题
You are creating a Windows Forms application for a financial service provider by using the .NET Framework 3.5. You have to implement a multiple document interface (MDI) in the application to allow users to open multiple financial documents simultaneously.You need to ensure that whenever the child MDI form is created, the application displays a message in the title bar of the parent MDI that a child form has received focus. What should you do?()
A.Implement theActivated event
B.Implement the MdiChildActivate event
C.Override the OnParentVisibleChanged method
D.Override the OnParentBindingContextChanged method -
多项选择题
YouarecreatingaWindowsFormsapplicationbyusingthe.NETFramework3.5.TheapplicationdisplaysemployeenamesbyusingtheTreeViewcontrol.YouneedtoimplementthedraganddropfunctionalityintheTreeViewcontrol.Whichtwoactionsshouldyouperform?()
A.Set theAllowDrag property to true.Create an event handler for the DragOver event.
B.Set theAllowDrag property to true.Create an event handler for the ItemDrag event to call the DoDragDrop method.
C.Set theAllowDrag property to true.Create an event handler for the DragEnter event to call the DoDragDrop method .
D.Create an event handler for the DragDrop event to handle the move or copy by itself.
E.Create an event handler for the DragEnter event to handle the move or copy by itself. -
单项选择题
You create Windows Forms applications by using the .NET Framework 3.5. You plan to deploy a new application by using the ClickOnce technology.During deployment, the application performs the following tasks: (1)Modifies registry keys (2)Modifies the files located in the %PROGRAM FILES% folder (3)Administrative permissions are not granted to users who install the application You need to ensure that the following requirements are met: (1)The application can be deployed to Windows Vista client computers that are not part of an Active Directory domain (2)When the application is deployed, users are not prompted to elevate their permissions What should you do?()
A.Create a manifest and set the RequestedExecutionLevel level attribute to AsInvoker.
B.Create a manifest and set the RequestedExecutionLevel level attribute to As Administrator.
C.Create a new certificate trust list (CTL).Use the CertMgr.exe tool to install the CTL on the local computer.
D.Create a new certificate trust list (CTL).Install the CTL on the server that has theClickOnce application published.
