473,408 Members | 1,769 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,408 software developers and data experts.

Description of Function

I'm looking for a way to add comment directly in the tooltip that pops
when you type a function and you have to insert parameters.

Like the tooltips you have when you create a new ArrayList

Dim a as new arraylist(capacity)
capacity : The number of argument ...

Aug 9 '06 #1
4 1235
<pa***********@gmail.comschrieb:
I'm looking for a way to add comment directly in the tooltip that pops
when you type a function and you have to insert parameters.

Like the tooltips you have when you create a new ArrayList

Dim a as new arraylist(capacity)
capacity : The number of argument ...
VB 2005 supports XML comments out of the box. Simply type "'''" in front of
the method declaration.

Solutions for older versions of VB.NET:

Adding IntelliSense tooltips, XML comments, and documentation
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=tooltipsxmldocumentation&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Aug 9 '06 #2
If you do the autodocumenting tags (signalled by three comment characters
''') and fill in comments for each parameter, those comments show up in the
tooltips. Here's how it looks for a method of mine:

''' <summary>
''' Writes a message to the Windows Event Log
''' </summary>
''' <param name="logName">Name of the target Log within the Event
Log</param>
''' <param name="sourceName">Name of the event Source</param>
''' <param name="machineName">Name of the target server where the Event Log
resides</param>
''' <param name="message">The message to be logged</param>
''' <param name="messageType">The EventLogEntryType (e.g. Error, Warning,
Information, etc.)</param>
''' <remarks></remarks>

Typing ''' causes VS2005 to generate the tags based on your method
signature. You then fill in the text within the tags.

When I make a call to that method in my code and hit the opening parentheses
the tooltip says "logName: Name of the target Log within the Event Log".

Zoe
<pa***********@gmail.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
I'm looking for a way to add comment directly in the tooltip that pops
when you type a function and you have to insert parameters.

Like the tooltips you have when you create a new ArrayList

Dim a as new arraylist(capacity)
capacity : The number of argument ...

Aug 9 '06 #3
Herfried,

Can you expand on your comment that VB 2005 supports XML comments?!? I
can't find it in the MSDN anywhere!
Don't suppose you could give a quick example?

___________________________________________
The Grim Reaper

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:ut**************@TK2MSFTNGP02.phx.gbl...
<pa***********@gmail.comschrieb:
>I'm looking for a way to add comment directly in the tooltip that pops
when you type a function and you have to insert parameters.

Like the tooltips you have when you create a new ArrayList

Dim a as new arraylist(capacity)
capacity : The number of argument ...

VB 2005 supports XML comments out of the box. Simply type "'''" in front
of the method declaration.

Solutions for older versions of VB.NET:

Adding IntelliSense tooltips, XML comments, and documentation
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=tooltipsxmldocumentation&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Aug 9 '06 #4
Sorry!! Worked it out myself!!

For anyone else as forgetful as me - you need to have "Generate XML
documentation file" checked under the Compile options of My Project.
________________________________________
The Grim Reaper

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:ut**************@TK2MSFTNGP02.phx.gbl...
<pa***********@gmail.comschrieb:
>I'm looking for a way to add comment directly in the tooltip that pops
when you type a function and you have to insert parameters.

Like the tooltips you have when you create a new ArrayList

Dim a as new arraylist(capacity)
capacity : The number of argument ...

VB 2005 supports XML comments out of the box. Simply type "'''" in front
of the method declaration.

Solutions for older versions of VB.NET:

Adding IntelliSense tooltips, XML comments, and documentation
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=tooltipsxmldocumentation&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Aug 9 '06 #5

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

Similar topics

4
by: rbt | last post by:
How does one associate a "Description" with a Windows service written in Python? I've just started experimenting with Python services. Here's my code... copied straight from Mr. Hammond's "Python...
7
by: ???????J | last post by:
Javascript may inquire the push down menu value, can I inquire the description? The following example, the variable($answer) can be get the menu1's value. For example, if I select first data,...
5
by: Doslil | last post by:
I am trying to validate a text field where the user has to input the first name I am writing the following function Private Function EFN() On Error GoTo EFNErr If IsNull(Me.FirstName) Or...
3
by: sparks | last post by:
I was copying fields from one table to another. IF the var name starts with milk I change it to egg and create it in the destination table. It works fine but I want to copy the description as...
2
by: Dennis Ruppert | last post by:
I created a routine to read and edit the description properties of tables, (the one you see in the database window). It works just fine. This is the basic code behind it, I substituted all my...
8
by: doomx | last post by:
I'm using SQL scripts to create and alter tables in my DB I want to know if it's possible to fill the description(like in the Create table UI) using these scripts. EX: CREATE TABLE(...
1
by: laurenq uantrell | last post by:
What I'm trying to do is to re-use the values of err.number and err.description after displaying them in a MsgBox. The values seem to auto clear and not be re-usable on a second reference. For...
6
by: Sergey Poberezovskiy | last post by:
Hi, I have already asked the question, but probably did not make myself clear. Back in VB6 days when you created a public method/property/event you could define what's called "Procedure...
4
by: Joe Fallon | last post by:
If I have an Enumeration can I give a text description for each value? e.g. something like Public Enum Colors Black "Really cool Black" Blue "Ice Cold Labatts" End Enum
6
by: rguti | last post by:
Hi, Does anybody know how to get the column description for a table in SQL Server 2000? Thanks.
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.