多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

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
答案解析:
进入题库查看解析

微信扫一扫手机做题