Tooltips in VB.Net at Designtime

  • Thread starter Thread starter W1ld0ne [MCSD]
  • Start date Start date
W

W1ld0ne [MCSD]

When you work in VB.Net and you reference a component.

The your create an object to represent the component. Then if the
outocomplete feature shows you a list of available methods in the class, and
then you have that tooltip that pops up next to the item that you have
selected... how would you add those into components that you create?

My first guess is to add an attribute to the method, but I have not been
able to find one that works. Anyone have a clue?

Thanks
David Taylor
 
Hi David,

Sorry, you change language and write in C# whereupon you can specify these
things in comments above your methods. So far VB doesn't have this facility. I
believe it will be coming though, it seems silly only having it in C#. Many VB
developers are asking about it.

Regards,
Fergus
 
Hi, It's called XML Documentataion. It's not available in VB.NET by default,
but don't worry!! There are programs that allow you to do such things.

Mr Wagner has a link to some such programs, I believe they are free.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
 
Hello,

W1ld0ne said:
When you work in VB.Net and you reference a component.

The your create an object to represent the component. Then
if the outocomplete feature shows you a list of available
methods in the class, and then you have that tooltip that pops
up next to the item that you have selected... how would you add
those into components that you create?

There are some tools available which can be used to generate the XML
file
required for the tooltips:

My XML Comments FAQ:

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

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

VBXC - VB.NET XML Commentor
http://vbxmldoc.tor-erik.net/index.shtml

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

VB.DOC
http://vb-doc.sourceforge.net/
 
And indeed, downloading an addin allows you to have cake, and eat it.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
 
Thanks a hole bunch to everyone who replied... Really helped allot!

Wizard
AKA David Taylor
 
Back
Top