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

Method description thingy...

Hi everyone,

I have a simple method inside a class in a solution. When I create an
object from the class I see the method signature appear in the drop
down - I'm sure you know what I mean.
My question is though how do I get a description to appear underneath
the method signature - just like a system method?
Can anyone help me please?

Al.
The puzzled.

**** Just a skeletal method ****

Public Function aMethod(ByVal str As String, ByVal num as Integer)

'Method body omitted

End Function

Feb 7 '06 #1
8 1068
You need to create an XML documentation file for your objects.

VB doesn't support XML documentation natively if you're running under
VS2003. You can use an addin to create the XML documentation though. VS2005
enables you to add documentation by typing three apostrophes (''') on any
line. The system will then attempt to insetr a bare-bones XML comment for
your code.

You can specify in the project settings that the XML doc file should be
built. Once it's created you can place this in the same directory as the
binary file and intellisense will pick it up when the DLL is used.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

<al*****@altavista.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi everyone,

I have a simple method inside a class in a solution. When I create an
object from the class I see the method signature appear in the drop
down - I'm sure you know what I mean.
My question is though how do I get a description to appear underneath
the method signature - just like a system method?
Can anyone help me please?

Al.
The puzzled.

**** Just a skeletal method ****

Public Function aMethod(ByVal str As String, ByVal num as Integer)

'Method body omitted

End Function

Feb 7 '06 #2
Pity - I though there is an easier way. Im using Visual Studio 2003. Ah
well - thanks though Bob.

Al.

Feb 7 '06 #3
<al*****@altavista.com> schrieb:
I have a simple method inside a class in a solution. When I create an
object from the class I see the method signature appear in the drop
down - I'm sure you know what I mean.
My question is though how do I get a description to appear underneath
the method signature - just like a system method?
VS.NET 2002/2003:

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

VS 2005:
**** Just a skeletal method ****

Public Function aMethod(ByVal str As String, ByVal num as Integer)


Simply type "'''" in front of the method declaration.

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

Feb 7 '06 #4
Our VBdocman .NET add-in can do all the work for you in VS 2003. See
http://www.vbdocman.com/net/help/ind...ntext_help.htm
for more details about context help in VS.

--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code
Feb 7 '06 #5
CMM
The VBCommenter power toy add-in for VS2003 is EXCELLENT, simple, light on
resourses, and even better than the built-in functionality in VS2005.
Download the stable 1.2.5. version:
http://www.gotdotnet.com/workspaces/...a-86bdf39a17dd

It works just like it works in VS2005.... type ''' and voila.

Plus, unlike VS2005 it picks up on attributes you may have already applied
to your method or property or whatever (such as
ComponentModel.Description(...)).
Feb 7 '06 #6
CMM
While your product looks fine... why pay? The VBCommenter power toy add-in
does it for free. Coupled with (the also free and fantastic) NDoc, I can't
see your product being a compelling alternative in the slightest.
Feb 7 '06 #7
> While your product looks fine... why pay? The VBCommenter power toy add-in
does it for free. Coupled with (the also free and fantastic) NDoc, I can't
see your product being a compelling alternative in the slightest.


There's always reason for commercial products. If you are doing basic
things, free tools may be OK. Our VBdocman offers several additional
features:
1. All in one.
2. More output formats.
3. Redistributable command line tool that easily registers and
integrates your component documentation on user's machine during
installation.
4. WYSIWYG comment editor. You can visually place bold, italic,
underline, links, tables, pictures, lists and other things directly to
your XML comments. It allows you to insert complex code examples and
automatically escapes all dangerous XML characters.
5. While not perfect, it works as it should (unlike free tools). For
example see
http://groups.google.com/group/micro...e456b3a499b6be
or
http://groups.google.com/group/micro...0c25ee4b401da6
6. Support for generics and partial classes (in the upcoming version
which will be released in a few days).
7. Conditional inclusion of members in resulting documentation, ability
to include source code, ability to document namespaces.
8. Recognizes @-style javadoc comments which is very important for teams
that ported their VB6 code to .NET.
9. Ability to use short numerical file names to avoid OS limit on path
length and more.
10. Support.
--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code
Feb 7 '06 #8
CMM
Great pitch!

Me personally I've always been an RTF + MSHelpWorkshop as oppossed to
Robohelp kind of guy (to use an old but applicable analogy).
Feb 7 '06 #9

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

Similar topics

2
by: olekristianvillabo | last post by:
The method cursor.executemany is there in order to avoid multiple calls to cursor.execute(). I have tried, with success, to do like every single example (that I have found on the www) on the...
18
by: Jon S via DotNetMonster.com | last post by:
Hi all, I searching a string to see if "Desc" resides in it, if so then replace it with "Description". For some reason if it finds "Desc" in the word "Description" it replaces the "Desc" part...
12
by: Rubbrecht Philippe | last post by:
Hi there, According to documentation I read the ArrayList.IndexOf method uses the Object.Equals method to loop through the items in its list and locate the first index of an item that returns...
12
by: acb | last post by:
Hi, I have a list of different objects in a <List> Structure. There is only one category of each kind of object. Current I have the following methods: public static Flag GetFlagObj() {...
4
by: Alan T | last post by:
I got a method in my ancestor form declared as Protected, this method has empty body. In my descendant form I declared as Protected also, then compile has no problem but the name of the method has...
0
by: compumate99 | last post by:
I am trying to parse the xml document using selectsinglenode method. I am doing this using Visual Foxpro >>> loResultXml = CreateObject("Microsoft.XMLDOM") With loResultXml .Async = .F. ...
10
by: HugeBob | last post by:
Hi All, I'm having a problem with a web app I'm writing. I have a form for which I'm going to validate one of the fields. I use AJAX to retrieve XML containing a list of valid entries. My app...
9
by: =?Utf-8?B?UGFvbG8=?= | last post by:
I'm new to C# so apologies if this is a dumb question. If I want to insert a new row into a SQLServer table I can have a method something like this: public void insertRow(int id, string...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.