Practice Questions

Question 1Your application includes a form that displays employee names in a simple-bound TextBox control. You'd like to add a tooltip to the TextBox control, with the tooltip displaying the title of the employee. The employee names and employee titles are both supplied by the same IList. How can you do this?
  • A. Bind the employee title to the Tag property of the TextBox control. In the event handler for the PositionChanged event of the CurrencyManager object, call the ToolTip's SetToolTip method to copy the value from the Tag property to the Tooltip.

  • B. Bind the employee title to the Name property of the ToolTip control.

  • C. Bind the employee title to the Tag property of the TextBox control. In the event handler for the CurrentChanged ...

Get Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.