|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Method description thingy...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 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. -- Show quoteHide quoteBob 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. <almu***@altavista.com> wrote in message news:1139324033.593529.283230@o13g2000cwo.googlegroups.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 > Pity - I though there is an easier way. Im using Visual Studio 2003. Ah
well - thanks though Bob. Al. 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/workspace.aspx?id=112b5449-f702-46e2-87fa-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(...)). <almu***@altavista.com> schrieb:
> I have a simple method inside a class in a solution. When I create an VS.NET 2002/2003:> 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? Adding IntelliSense tooltips, XML comments, and documentation <URL:http://dotnet.mvps.org/dotnet/faqs/?id=tooltipsxmldocumentation&lang=en> VS 2005: > **** Just a skeletal method **** Simply type "'''" in front of the method declaration.> > Public Function aMethod(ByVal str As String, ByVal num as Integer) -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Our VBdocman .NET add-in can do all the work for you in VS 2003. See
http://www.vbdocman.com/net/help/index.html?page=source%2fdeploy_context_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 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. > While your product looks fine... why pay? The VBCommenter power toy add-in There's always reason for commercial products. If you are doing basic > 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. 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/microsoft.public.dotnet.languages.vb/browse_frm/thread/bee456b3a499b6be or http://groups.google.com/group/microsoft.public.vstudio.helpauthoring/browse_frm/thread/70c25ee4b401da6 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 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).
ADO.net + MS Access = performance issues
VB.NET Structures and Union Help. how to group similar events? Device Driver in VB 2005 Converting a project from 2003 to 2005 differences Copying files across network Problems with ByRef parameters String vs. Stringbuilder speed parsing questio System.IO.FileSystemWatcher is missing alot of files. continue debugging without interrupting |
|||||||||||||||||||||||