试题详情
单项选择题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.

  • D
  • 关注下方微信公众号,在线模考后查看

热门试题