Link to home
Start Free TrialLog in
Avatar of neelbak
neelbak

asked on

Tooltip to describe class functions

I'm trying to allow tooltips to show up while I program.  For example, I have created a class with multiple properties and functions.  When I create an instance of that object and start programming in it, VB.NET will list out all the members of the class and also what the declaration is.  I was wondering how I can add a description to that tooltip that gives a more descriptive explanation of that class/parameters.

Here is a brief description of my class

Public Class MyClass
   Private var1 as integer
   Private var2 as integer

'This is my description of Var1 that I wish to display
Public Property Var1() as integer
end property

'This is my description of Var2 that I wish to display
Public Property Var2() as integer
end property

'This is my description of the function.
Public Sub AddThese()
end Sub

end class


Now when I program:

Dim x as new MyClass

when I type   x.Var1  I would like a description to show up that I had above the function.

I believe this is accomplished using attributes, but not sure.  I would appreciate any sample code.  Thanks.


end sub
SOLUTION
Avatar of RonaldBiemans
RonaldBiemans

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RonaldBiemans
RonaldBiemans

It is supported in C#

 when typing /// at the 3rd "/" you will receive a list for every parameter , remarks and return for the current method
Avatar of neelbak

ASKER

Not the answer I was hoping for.  But it was accurate.  Thanks.
Hi,

Is that feature present in the VB.NET 2005 ?