DescriptionAttribute

  • Thread starter Thread starter Zembaliti
  • Start date Start date
Z

Zembaliti

The description specified by [Description("...")] is displayed in the
property browser in the VS.NET Designer. But if the mouse is over the
property's text in the VS.NET editor, the tooltip only displays the
property's name...

Is there any way to make the tooltip also displays the property's
description? Please tell me how to do this. Thanks...

Best regards,
Zembaliti
 
Hi,

You need to add XML comments to the property. The content of the
<description> tag will be displayed in the tooltip. The DescriptionAttribute
value is recognized only by the designer, but not by the code editor.
 
Back
Top