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.