找考题网-背景图
单项选择题

You are creating a Windows Forms application by using the .NET Framework 3.5. You plan to develop a new control for the application.You need to ensure that the control extends the TreeView control by adding a custom node tag and a highlight color.What should you do?()

A.Override the OnPaint method.
B.Write a code segment in the DrawNode event handler to specify the highlight color.
C.Set the DrawMode property of the control to OwnerDrawAll, and then implement a custom DrawNode event handler.
D.Set the DrawMode property of the control to OwnerDrawText,and then implement a custom DrawNode event handler.

热门试题