PC Review


Reply
Thread Tools Rate Thread

How to add tooltiptext to my custom properties,methods,events?

 
 
JohnC
Guest
Posts: n/a
 
      21st Aug 2003
When working in the IDE, and you browse the properties, methods, or events
for a class, a handy tooltiptext pops up showing you something about the
item selected.

How can I create my own tooltiptext that will behave like this, when I'm
creating my own custom classes? Is there a magic keyword I can use when
defining the properties, methods, and events? A VB example would be much
appreciated.

Thanks to Herfried K. Wagner for his mention of the XML commenter tool (and
others) but unless I'm misunderstanding this issue, the links were not
related to this problem.

Thanks,
John



 
Reply With Quote
 
 
 
 
Herman Eldering
Guest
Posts: n/a
 
      24th Aug 2003
Hi,

In C# the XML documentation is used. I'm not sure if XML documentation is
available in VB.NET. It is however also possible to use attributes for this.
You can find more information on this here (it is a shortcut to the online
help):
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/T_System_ComponentModel
_DescriptionAttribute.htm

Here is an example of the DescriptionAttribute:

Description("The image associated with the control"), _
Category("Appearance")> _
Public Property MyImage() As Image
Get
' Insert code here.
Return image1
End Get
Set
' Insert code here.
End Set
End Property

I hope this solves your question.

Herman Eldering

"JohnC" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> When working in the IDE, and you browse the properties, methods, or events
> for a class, a handy tooltiptext pops up showing you something about the
> item selected.
>
> How can I create my own tooltiptext that will behave like this, when I'm
> creating my own custom classes? Is there a magic keyword I can use when
> defining the properties, methods, and events? A VB example would be much
> appreciated.
>
> Thanks to Herfried K. Wagner for his mention of the XML commenter tool

(and
> others) but unless I'm misunderstanding this issue, the links were not
> related to this problem.
>
> Thanks,
> John
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why instantiate a class, all of whose methods, properties, and events are static? sherifffruitfly Microsoft C# .NET 7 1st Nov 2006 09:28 PM
Re: properties, events, methods, members order in a class Kakaiya Microsoft Dot NET 0 28th May 2005 10:41 AM
Events, properties, methods translated in Dutch - Nederlands openleren Microsoft Access 3 1st Oct 2004 08:16 AM
Enumerating Custom Class Properties and methods =?Utf-8?B?RG9taW5pYyBSb2JpbnNvbg==?= Microsoft Access VBA Modules 0 5th May 2004 09:21 AM
Tooltip for custom class properties/methods Scott M. Microsoft VB .NET 15 7th Oct 2003 04:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:38 AM.