VB.NET hints (descriptions) and predefined values

  • Thread starter Thread starter Mobile Boy 36
  • Start date Start date
M

Mobile Boy 36

How can you add hints and predefefind values to your own-created functions?
Please post a code example.

To illustrate what I mean:

Hints:
When you type "system.Windows.Forms.Button" Visual sudio gives a hint (a
description): "represent a windows
button control"

Predefined values:
When you type "dim ThrPr as system.Threading.ThreadPriority = " Visual
Studio gives a combobox (code completion) with a list of predefined
values, in this case
Threading.ThreadPriority.AboveNormal,
Threading.ThreadPriority.BelowNormal,....

Best Regards,
Mobile Boy
 
The first instance is done with XML Comments. It's available in C#
inherently, I think for VB it's an add-in tool.

The second instance is simply the way Studio works. The priorities are
defined in an Enum, so studio automagically pops up a list of the members of
the Enum. You get that for free and with no 'special" code.

-Chris
 
Back
Top