What will you do?

You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You are creating a Windows Forms application using .NET Framework 3.5. You need to develop a new control for the application. You must ensure that the control inherits the TreeView control by adding a custom node tag and a highlight color.

What will you do?
A . Write a code segment in the DrawNode event handler to give the highlight color.
B . Override the OnPaint method.
C . Set the control’s DrawMode property to OwnerDrawText, and then implement a custom DrawNode event handler.
D . Set the control’s DrawMode property to OwnerDrawAll, and then implement a custom DrawNode event handler.

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments