Which two actions should you perform?

You are creating a Windows Forms application by using the .NET Framework 3.5.
The application displays employee names by using the TreeView control.
You need to implement the drag-and-drop functionality in the TreeView control.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

You are creating a Windows Forms application by using the .NET Framework 3.5.
The application displays employee names by using the TreeView control.
You need to implement the drag-and-drop functionality in the TreeView control.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.
Set the AllowDrop property to true. Create an event handler for the DragOver event.

B.
Set the AllowDrop property to true. Create an event handler for the ItemDrag event to call the DoDragDrop method.

C.
Set the AllowDrop 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.



Leave a Reply 0

Your email address will not be published. Required fields are marked *