473,403 Members | 2,293 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.

Add intelisense explanation to method/property definitions

Hi,

When you view the definitions of standard methods/properties in
intelisense as well as the basic definition you get a brief
description, for example for string.length you see "Gets the number of
characters in this instance".

Is it possible to add this to my own methods & properties?

Thanks,
Mark
Nov 20 '05 #1
6 1685
Good question, I suspect it's going to invlolve an XML schema, but I dont
know how to do this. I'll be intresed at the response.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Mark" <zz******@hotmail.com> wrote in message
news:9c**************************@posting.google.c om...
Hi,

When you view the definitions of standard methods/properties in
intelisense as well as the basic definition you get a brief
description, for example for string.length you see "Gets the number of
characters in this instance".

Is it possible to add this to my own methods & properties?

Thanks,
Mark

Nov 20 '05 #2
Hi,

Take a look at the VB Commenter power toy and Custom Helper builder.
http://www.gotdotnet.com/team/ide/
Ken
-----------------------

"Mark" <zz******@hotmail.com> wrote in message
news:9c**************************@posting.google.c om:
Hi,

When you view the definitions of standard methods/properties in
intelisense as well as the basic definition you get a brief
description, for example for string.length you see "Gets the number of
characters in this instance".

Is it possible to add this to my own methods & properties?

Thanks,
Mark


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004
Nov 20 '05 #3
This power toy is neat. Unfortunately, you don't get the benefits of
intellisense unless you compile your classes into a dll. Classes local to
your project won't show the intellisense. There's a gotta be a better, pure
"attribute" solution, no?

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl...
Hi,

Take a look at the VB Commenter power toy and Custom Helper builder.
http://www.gotdotnet.com/team/ide/
Ken
-----------------------

"Mark" <zz******@hotmail.com> wrote in message
news:9c**************************@posting.google.c om:
Hi,

When you view the definitions of standard methods/properties in
intelisense as well as the basic definition you get a brief
description, for example for string.length you see "Gets the number of
characters in this instance".

Is it possible to add this to my own methods & properties?

Thanks,
Mark


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004

Nov 20 '05 #4
According to the help, VB.Net does not directly support Code Comments used by
Intellisense.
Currently the only way to achieve this is through compilation and other means.
It has been rumored that one of the upcoming releases of VB.Net will somehow
support this.

Gerald

"Mark" <zz******@hotmail.com> wrote in message
news:9c**************************@posting.google.c om...
Hi,

When you view the definitions of standard methods/properties in
intelisense as well as the basic definition you get a brief
description, for example for string.length you see "Gets the number of
characters in this instance".

Is it possible to add this to my own methods & properties?

Thanks,
Mark

Nov 20 '05 #5
* zz******@hotmail.com (Mark) scripsit:
When you view the definitions of standard methods/properties in
intelisense as well as the basic definition you get a brief
description, for example for string.length you see "Gets the number of
characters in this instance".

Is it possible to add this to my own methods & properties?


Yes.

My FAQ:

Adding tooltips in intellisense for VB.NET assemblies:

VS.NET takes the text shown in intellisense tips from an XML file that
is provided in addition to the assembly (for example, a DLL). The XML
file must have the same name as the corresponding DLL with ".xml"
appended and must be placed in the same folder as the assembly
(assembly "Foo.dll", XML file "Foo.dll.xml").

The format of the XML file taken by VS.NET is specified here:

<URL:http://msdn.microsoft.com/library/en-us/csref/html/vclrfprocessingxmlfile.asp>

For C#, VS.NET creates this XML file automatically (compiler option
"/doc"). For VB.NET, that's currently not supported, but this will be
possible in VB 2005.

You can create the XML file by hand, but notice that this will take a
lot of time and it will be hard to update the file if parts of the
assembly change. It's much easier to use one of the tools listed below
to create the XML file. Tools like NDOC will take the XML file and can
be used to create an HTML Help file from this data.

One easy way is to provide information for tooltips as XML comments
inside the source files and then use tools like VB.DOC to create the XML
file that contains the data. Then you can copy this file into the
assembly's directory to provide information to VS.NET that enables it to
display tooltips, or you can create a help file. The help file can be
deployed with the assembly and can be used by other developers who use
the assembly as reference.

For VB.NET 2002/2003:

My XML Comments FAQ:

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

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

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

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

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

<URL:http://www.gotdotnet.com/Community/Workspaces/Workspace.aspx?id=112b5449-f702-46e2-87fa-86bdf39a17dd>

XML comments will be introduced to VB in version 2005 ("Whidbey").

C# XML comments:

C# Programmer's Reference -- Recommended Tags for Documentation Comments
<URL:http://msdn.microsoft.com/library/en-us/csref/html/vclrfTagsForDocumentationComments.asp>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6
I should qualify my statements.
VB.Net does not natively support code comments within your current project.
I believe what you want to achieve is to add an attribute to a function in the
project you are editing and have that attribute automatically parsed by the IDE
and displayed elsewhere within the same project.
There are a number of options for documenting your code and having these
extracted to an XML file when you project is compiled.
Then when you reference your project into another, you can then get your code
comments.
Just not within the same project "on-the-fly".

Gerald

"Cablewizard" <Ca*********@Yahoo.com> wrote in message
news:OJ*************@TK2MSFTNGP12.phx.gbl...
According to the help, VB.Net does not directly support Code Comments used by
Intellisense.
Currently the only way to achieve this is through compilation and other means.
It has been rumored that one of the upcoming releases of VB.Net will somehow
support this.

Gerald

"Mark" <zz******@hotmail.com> wrote in message
news:9c**************************@posting.google.c om...
Hi,

When you view the definitions of standard methods/properties in
intelisense as well as the basic definition you get a brief
description, for example for string.length you see "Gets the number of
characters in this instance".

Is it possible to add this to my own methods & properties?

Thanks,
Mark


Nov 20 '05 #7

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

Similar topics

2
by: Eric | last post by:
Hello, I'm sure there's an easy answer for this but I can't seem to figure out why VS is behaving this way. If I create a new ASP.net project, the codebehind VB file allows me to type in the name...
10
by: eLisHa | last post by:
i have an arraylist that gets it's values dynamiclly from the database, after paging, searching & more in the ASP.net file. What im trying to do, is sort the results that are sorted in the...
0
by: ditwal001 | last post by:
hi folks i am building up a c# code generater. the c# code is deposited in the sql server database. the code is indicated in a textbox for treatment. in order to receive to more comfort i would...
3
by: bauscharln | last post by:
hoi, I just wanted to add a static method to my interface, but that's not allowed! Is there a reason for this??? (Yes, I could make an abstract base class, but that's not what I want, since I...
6
by: JohnR | last post by:
I have a table with 1 row which is used to hold some application wide items (one item per field, hence I only need 1 row). I want to bind one of the fields to a textbox. After setting up the...
3
by: orianavim | last post by:
Hi, i'm try to build my own intelisense to some part of our system. Does anyone know where should i start from? or maybe can you refer me to a good reference or a open source code which can...
0
by: Natan Vivo | last post by:
Hi. I have a Solution here that contains 3 DLLs and a WebSite. In one of the dlls I have some custom server controls (extending Control mostly). I have mapped them in web.config (system.web \...
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
0
by: =?iso-8859-2?Q?Piotr_Ko=B3odziej?= | last post by:
Hi I am writing VS add-in. I basicaly need to detect when user is pressing '(' char and intelisense is getting parameter information for a method. later I'll need to detect .net types of...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.