Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Programming tooltip question.

Status
Not open for further replies.

jcisco

Programmer
Sep 17, 2002
125
US
I was just wondering if anyone knows how to have a class method show details about itself for the calling class?

for example.
if you if you are using the XmlTextWriter class, and you go to use the flush method, the tooltip pops up and states "Flushes whatever is in the buffer etc..."
how did they do that? I would like to add that functionality to my classes.

thanks.
john
 
Hi john,

I think this is what you need.
Just add
<Description(&quot;your property description&quot;)> _
to the line before the property function.
(Don't forget the underscore, this is all part of the property line)

Cheers
Paul.
 
Yeah, there goes wonderful Microsoft pimping out C#. Half the documentation features only work in C#, no C++ or VB. When you build comment pages in VB you only get a really basic object model. You cannot add comments in the code that'll be picked up in the parser in VB. Same goes for the tooltip stuff. Only C# again. It is really annoying. I am very disappointed with this. foo
 
when I use the <Category or the Description tags they are showing up as not defined. Is their a import, or something that i'm missing? that link isn't saying.
thanks.
 
<System.ComponentModel.Description(&quot;First Name of individual.&quot;)> _
Public WriteOnly Property FirstName() As String

OR put
Imports System.ComponentModel
before the first Class statement then

<Description(&quot;First Name of individual.&quot;)> _
Public WriteOnly Property FirstName() As String
works.

Remember. Category is for properties of controls. Description is for Intellisense.
Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top