473,657 Members | 2,407 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Comments in Object Browser

SR
I've been trying to find out how to get comments to appear in the 'Object
Browser' for my VB.Net components.

What a nightmare!!

I've created the XML Code document, so when I reference the component(s) the
comments appear in the object browser. However, the comment don't appear in
the object browser for the current solution - only when I reference it
within another solution.

And the 'Code Comment Web Report' just doesn't become useful in VB.Net.

In C++.Net it's much easier.

Why is VB.Net so different?

Is there an easier/better way of doing this?

Hopefully I'm missing a trick and someone can help. Thanks

SR.
Nov 21 '05 #1
4 2559
SR
OK, so I've just read that only C# supports this fully, with C++ having
limited functionality. Hopefully VB will support this soon.
"SR" <si***********@ hotmail.com> wrote in message
news:ek******** *****@TK2MSFTNG P11.phx.gbl...
I've been trying to find out how to get comments to appear in the 'Object
Browser' for my VB.Net components.

What a nightmare!!

I've created the XML Code document, so when I reference the component(s) the comments appear in the object browser. However, the comment don't appear in the object browser for the current solution - only when I reference it
within another solution.

And the 'Code Comment Web Report' just doesn't become useful in VB.Net.

In C++.Net it's much easier.

Why is VB.Net so different?

Is there an easier/better way of doing this?

Hopefully I'm missing a trick and someone can help. Thanks

SR.

Nov 21 '05 #2
SR,

There are some thirth party freeware tools for that, however I do not know
how far that is compatible with VB2005 where it is implemented.

Here a part of the list where you can find them in advance of the bunch of
links Herfried will provide for sure to this thread, however I saw he was
still active in this newsgroup, when it is here almost 4 o'clock (Herfried
lives in the same timezone) and now it is 8 o'clock here so probably you
will have to wait for that.

I hope this helps?

Cor

VB Commenter
http://www.gotdotnet.com/team/ide/

XML Documentation
http://www.gotdotnet.com/team/vb/
VBXC - VB.NET XML Commentor
http://vbxmldoc.tor-erik.net/index.shtml

NDOC
http://ndoc.sourceforge.net/

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

Cor
"SR"
OK, so I've just read that only C# supports this fully, with C++ having
limited functionality. Hopefully VB will support this soon.
"SR" <si***********@ hotmail.com> wrote in message
news:ek******** *****@TK2MSFTNG P11.phx.gbl...
I've been trying to find out how to get comments to appear in the 'Object Browser' for my VB.Net components.

What a nightmare!!

I've created the XML Code document, so when I reference the component(s)

the
comments appear in the object browser. However, the comment don't appear

in
the object browser for the current solution - only when I reference it
within another solution.

And the 'Code Comment Web Report' just doesn't become useful in VB.Net.

In C++.Net it's much easier.

Why is VB.Net so different?

Is there an easier/better way of doing this?

Hopefully I'm missing a trick and someone can help. Thanks

SR.


Nov 21 '05 #3
* "SR" <si***********@ hotmail.com> scripsit:
I've been trying to find out how to get comments to appear in the 'Object
Browser' for my VB.Net components.

What a nightmare!!

I've created the XML Code document, so when I reference the component(s) the
comments appear in the object browser. However, the comment don't appear in
the object browser for the current solution - only when I reference it
within another solution.

And the 'Code Comment Web Report' just doesn't become useful in VB.Net.

In C++.Net it's much easier.

Why is VB.Net so different?

Is there an easier/better way of doing this?


Adding tooltips in intellisense for VB.NET assemblies and creating HTML Help
documentation:

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
has to be placed in the same folder as the assembly (assembly "Foo.dll",
XML file "Foo.dll.xm l").

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

<URL:http://msdn.microsoft. com/library/en-us/csref/html/vclrfprocessing xmlfile.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 keep the file up to date when 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 create an
HTML Help file from the XML formatted data.

One easy way to create the XML file is to provide information for tooltips
as XML comments inside the VB.NET 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:

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

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

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

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

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

<URL:http://www.gotdotnet.c om/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/vclrfTagsForDoc umentationComme nts.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4
SR
Thanks Herfried and Cor.

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:2q******** ****@uni-berlin.de...
* "SR" <si***********@ hotmail.com> scripsit:
I've been trying to find out how to get comments to appear in the 'Object Browser' for my VB.Net components.

What a nightmare!!

I've created the XML Code document, so when I reference the component(s) the comments appear in the object browser. However, the comment don't appear in the object browser for the current solution - only when I reference it
within another solution.

And the 'Code Comment Web Report' just doesn't become useful in VB.Net.

In C++.Net it's much easier.

Why is VB.Net so different?

Is there an easier/better way of doing this?
Adding tooltips in intellisense for VB.NET assemblies and creating HTML

Help documentation:

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
has to be placed in the same folder as the assembly (assembly "Foo.dll",
XML file "Foo.dll.xm l").

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

<URL:http://msdn.microsoft.com/library/en...rocessingxmlfi
le.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 keep the file up to date when 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 create an
HTML Help file from the XML formatted data.

One easy way to create the XML file is to provide information for tooltips
as XML comments inside the VB.NET 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:

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

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

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

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

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

<URL:http://www.gotdotnet.com/Community/W...spx?id=112b544
9-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...agsForDocument
ationComments.a sp>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

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

Similar topics

12
3509
by: windandwaves | last post by:
Hi Folks I have just completed a project for an accommodation finder in New Zealand - much with your help - thank you again. I would appreciate any constructive or deconstructive comments. The url is http://switch.hosts.net.nz/~admin64/index.php
72
5188
by: Stephen Poley | last post by:
I have quite often (as have probably many of you) come across HTML forms with irritating bits of Javascript attached. The last straw on this particular camel's back was a large form I was asked to complete in connection with attendance at a seminar. After spending more than 15 minutes on it, I clicked on the submit button - and nothing happened. Looking round the pages on Javascript form validation that Google produced for me (well,...
28
3445
by: Benjamin Niemann | last post by:
Hello, I've been just investigating IE conditional comments - hiding things from non-IE/Win browsers is easy, but I wanted to know, if it's possible to hide code from IE/Win browsers. I found <!> in the original MSDN documentation, but this is (although it is working) unfortunately non-validating gibberish. So I fooled around trying to find a way to make it valid. And voila: <!--><!><!-->
3
1898
by: Gary James | last post by:
I'm making a C# library module that has methods & properties that I've commented. I would like these comments to appear in the object browser when the library is used by another .NET application. The documentation is pretty thin describing this feature. All I could find was a reference to using XML documentation techniques; specifically using the "///" comment. I tried this but it didn't work. Any ideas? Thanks.
1
1547
by: Adie | last post by:
Hi, I'm starting to reuse quite a bit of my code through namespace references and would like that when I view the object in the "object browser" that I can see my comments about the method, property or whatever. All I get at the moment is the method's signature.
3
1278
by: Paul Loveless | last post by:
Hey all. I've noticed while programming in C# using vs.net 2003 that my xml comments (ex. the ///<summary> comments) will not show up in intellisense or the object browser unless all of the classes are in the same namespace. For instance, if I create a new winform application that references my class library, the comments for the classes in the library will not show up when I view them in the object browser or when I write code that...
3
3959
by: Ray Cassick \(Home\) | last post by:
Has anyone played around with them on VB in the new version yet? I am interested to get some feedback form people that have used this new feature before I install next week. I am using VBXC now to create the xml file and then using Ndoc to create the help file, but VBCX has a bug in it where it will not create comments unique comments for each member in an enum. Also, just looking to streamline my tools a bit. VBXC has been good for me...
5
1378
by: Lou | last post by:
How do I add comments to my public functions so the show up in the object browser? Something like in the Object viewer: Function IsMissing(ArgName) As Boolean Member of VBA.Information Returns True if an optional argument has not been passed (- How Do I add these comments)
3
1334
by: Brian | last post by:
Hi, I am trying to format my comments for my class library. how do i insert new line feed so that all the text is not just jumbled in together Brian
0
8411
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8323
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8838
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8613
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7351
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2740
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.