单项选择题
You are creating a Windows application for graphical image processing by using the .NET Framework 3.5. You create an image processing function and a delegate.You plan to invoke the image processing function by using the delegate.You need to ensure that the calling thread meets the following requirements:
(1)It is not blocked when the delegate is running
(2)It is notified when the delegate is complete
What should you do?()
A.Call the Invoke method of the delegate.
B.Call the BeginInvoke and EndInvoke methods of the delegate in the calling thread.
C.Call the BeginInvoke method by specifying a callback method to be executed when the delegate is complete.Call the EndInvoke method in the callback method.
D.Call the BeginInvoke method by specifying a callback method to be executed when the delegate is complete.Call the EndInvoke method of the delegate in the calling thread.
相关考题
-
单项选择题
YouarecreatingaWindowsFormsapplicationbyusingthe.NETFramework3.5.Youcreateanewforminyourapplication.Youadd100controlsatruntimeintheLoadeventhandleroftheform.Usersreportthattheformtakesalongtimetogetdisplayed.Youneedtoimprovetheperformanceoftheform.Whatshouldyoudo?()
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.
