473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Tooltip for custom class properties/methods

How do I add information to a custom class's properties and methods so that
when an instance of the class is made the VS.NET intelliSense will show the
information in a tooltip as the members are browsed from the drop-down list.

Is this done by marking the property/method with some attribute? If so,
which and how?
Nov 20 '05 #1
14 6744
"Scott M." <s-***@badspamsnet.net> scripsit:
How do I add information to a custom class's properties and methods so that
when an instance of the class is made the VS.NET intelliSense will show the
information in a tooltip as the members are browsed from the drop-down list.


My XML Comments FAQ:

VB Commenter
<http://www.gotdotnet.com/team/ide/>
-> section "VB Commenter"

XML Documentation
<http://www.gotdotnet.com/team/vb/>
-> section "XML Documentation"

VBXC - VB.NET XML Commentor
<http://vbxmldoc.tor-erik.net/index.shtml>

NDOC (formerly DOC.NET)
<http://ndoc.sourceforge.net/>

VB.DOC
<http://vb-doc.sourceforge.net/>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Hi Scott,

In addtion to Herfried's suggestions, I suggest that you can also take a
look at XML Documentation Tool
(http://msdn.microsoft.com/library/de...-us/dnvssamp/h
tml/vbcs_XMLComments.asp).

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #3
Thanks Herfried, but I'm not looking for a tool to do this for me, I'd like
to know how to manually make this happen.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
"Scott M." <s-***@badspamsnet.net> scripsit:
How do I add information to a custom class's properties and methods so that when an instance of the class is made the VS.NET intelliSense will show the information in a tooltip as the members are browsed from the drop-down
list.
My XML Comments FAQ:

VB Commenter
<http://www.gotdotnet.com/team/ide/>
-> section "VB Commenter"

XML Documentation
<http://www.gotdotnet.com/team/vb/>
-> section "XML Documentation"

VBXC - VB.NET XML Commentor
<http://vbxmldoc.tor-erik.net/index.shtml>

NDOC (formerly DOC.NET)
<http://ndoc.sourceforge.net/>

VB.DOC
<http://vb-doc.sourceforge.net/>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #4
Thanks Tian, but I'd like to know how to do this myself. I'm not looking
for a tool that does it for me.
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:s4**************@cpmsftngxa06.phx.gbl...
Hi Scott,

In addtion to Herfried's suggestions, I suggest that you can also take a
look at XML Documentation Tool
(http://msdn.microsoft.com/library/de...-us/dnvssamp/h tml/vbcs_XMLComments.asp).

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #5
Hi Scott,

Thanks for your feedback. I strongly recommend you use C# instead of Visual
Basic .NET if you want to do it yourself. As you know, Visual Studio .NET
provides more XML comments functionality to C# code:

Adding Comments in C# Code
http://msdn.microsoft.com/library/de...us/vsintro7/ht
ml/vxtskaddingcommentsincode.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #6
Thanks for your reply Tian, but, as I said, I am looking to find out how to
do this myself (without a tool) and in VB .NET, not C#.

Can you help me with this?
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:HQ**************@cpmsftngxa06.phx.gbl...
Hi Scott,

Thanks for your feedback. I strongly recommend you use C# instead of Visual Basic .NET if you want to do it yourself. As you know, Visual Studio .NET
provides more XML comments functionality to C# code:

Adding Comments in C# Code
http://msdn.microsoft.com/library/de...us/vsintro7/ht ml/vxtskaddingcommentsincode.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #7
"Scott M." <s-***@badspamsnet.net> scripsit:
Thanks for your reply Tian, but, as I said, I am looking to find out how to
do this myself (without a tool) and in VB .NET, not C#.


You will have to use a tool or write it on your own. I have posted some
links to open source tools for doing that previously.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
Again, thank you for your reply Herfried, but I am being as clear as I can
be on this: I do not want to use a tool, so the links you provided won't
help me. I do want (as you indicated below) to do this myself.

Do you have information on how this is accomplished or not?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O2**************@tk2msftngp13.phx.gbl...
"Scott M." <s-***@badspamsnet.net> scripsit:
Thanks for your reply Tian, but, as I said, I am looking to find out how to do this myself (without a tool) and in VB .NET, not C#.


You will have to use a tool or write it on your own. I have posted some
links to open source tools for doing that previously.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #9
"Scott M." <s-***@badspamsnet.net> scripsit:
Again, thank you for your reply Herfried, but I am being as clear as I can
be on this: I do not want to use a tool, so the links you provided won't
help me. I do want (as you indicated below) to do this myself.

Do you have information on how this is accomplished or not?


Again: Have a look at the implementation of the tools mentioned before. Some of them come with source code.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #10
Thanks, but I think it's clear that you don't understand my post.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl...
"Scott M." <s-***@badspamsnet.net> scripsit:
Again, thank you for your reply Herfried, but I am being as clear as I can be on this: I do not want to use a tool, so the links you provided won't help me. I do want (as you indicated below) to do this myself.

Do you have information on how this is accomplished or not?
Again: Have a look at the implementation of the tools mentioned before.

Some of them come with source code.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #11
"Scott M." <s-***@badspamsnet.net> scripsit:
Thanks, but I think it's clear that you don't understand my post.


ACK. I don't understand what exacltly you want to to. Maybe you can
provide more details...

:-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #12
Hello Scott,

I appologize that I am not quite sure what you mean by "find out how to do
this myself". Unlike C#, Visual Basic .NET compiler does not natively
support XML comments to the code. As you know, there are a number tools
existing to add such functionality to Visual Basic .NET.

Do you want to create a similar tool of your own? If so, you will need to
create a Visual Studio .NET Add-In of your own. When Visual Studio .NET IDE
will build a Visual Basic .NET application, your Add-In utility need to
perform the following tasks:

1. Scan and extract the comments from the VB source files.
2. Parse the information following the XML comment format.
3. Emits the result.

To achieve these steps, you will be familiar with VS .NET Add-In, XML
comment format, IL and assembly. As you know, it's time consuming and I
strongly recommend you make use one of existing tools.

Please feel free to let me know if you have any problems or concerns.

Have a nice day!
Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #13
Thanks Tian, this finally answers my question. I was unaware that VB.NET
does not support XML comments. Now, I understand why this must be done in
C#.
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:UA****************@cpmsftngxa06.phx.gbl...
Hello Scott,

I appologize that I am not quite sure what you mean by "find out how to do
this myself". Unlike C#, Visual Basic .NET compiler does not natively
support XML comments to the code. As you know, there are a number tools
existing to add such functionality to Visual Basic .NET.

Do you want to create a similar tool of your own? If so, you will need to
create a Visual Studio .NET Add-In of your own. When Visual Studio .NET IDE will build a Visual Basic .NET application, your Add-In utility need to
perform the following tasks:

1. Scan and extract the comments from the VB source files.
2. Parse the information following the XML comment format.
3. Emits the result.

To achieve these steps, you will be familiar with VS .NET Add-In, XML
comment format, IL and assembly. As you know, it's time consuming and I
strongly recommend you make use one of existing tools.

Please feel free to let me know if you have any problems or concerns.

Have a nice day!
Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #14
You are welcome, Scott. :-)

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Naresh Agarwal | last post by:
Hi I've written a Custom class loader, which reads the bytecode from a database and returns the Class object. For example, bytecode of a class "Test" is stored in the database. Through custom...
2
by: Andrea Gavana | last post by:
Hello NG, this may seem a stupid (or even impossible) question, but my knowlegde of Python is quite limited. I have basically a simple graphical user interface that contains a Panel, another...
24
by: downwitch | last post by:
Hi, I know this has been covered here and in the .public groups, but it seems like it's been a while, especially around here, so I just thought I'd ask again to see if anyone has figured out a...
0
by: bandzuch martin | last post by:
hello! is there any way how to return custom type for specific class using typeof operator? //my custom type definition class CustomType : System.Type { ... implementation ...
2
by: raymi | last post by:
Hi, I have a custom class that gets its properties dynamically from a database at runtime. Therefore I implemented the ICustomTypeDescriptor in this class and created a a custom...
1
by: | last post by:
Hi I have written a class (Vb.net) which supposed to write out page title, img URLs and other stuff. I can access the class methods and properties easily through the .vb page But how do I...
0
by: Imar Spaanjaars | last post by:
Hi there, Can anyone tell me how to perform two-way binding with custom properties in ASP.NET 2? Let's say I have a custom class called Person that I want to bind to a FormView (using an...
6
by: Shimon Sim | last post by:
Hi I am working on application that need to hold custom user information - Last and first name, email, some other domain related information. I used to create Base class for all my pages. The base...
1
by: nrasch | last post by:
I am coding an application in VB.Net 2005 where objects of a custom class are saved/retrieved into/out of a DB. As my application moves into its 2nd version I have to add new methods and properties...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.