nerdexam
GIAC

GSSP-.NET · Question #70

(Topic 1) 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…

The correct answer is C. Set the control's DrawMode property to OwnerDrawText, and then implement a custom. See the full explanation below for the reasoning.

Question

  • (Topic 1)

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?

Options

  • AWrite a code segment in the DrawNode event handler to give the highlight color.
  • BOverride the OnPaint method.
  • CSet the control's DrawMode property to OwnerDrawText, and then implement a custom
  • DSet the control's DrawMode property to OwnerDrawAll, and then implement a custom

How the community answered

(36 responses)
  • A
    8% (3)
  • B
    14% (5)
  • C
    75% (27)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full GSSP-.NET Practice