473,508 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you add intelli-sense tool-tip comments to object properties?

If you notice, most Microsoft objects include a comment in the tool-tip that
shows up when using intelli-sense auto-completion that describes that
property or method. How can I add such comments to my own objects?

You'd think that was easy to do, but I just can't figure it out!

Thanks for any help!

Chris

Nov 15 '05 #1
5 2419
"Christopher Kowalski" <ck****@sympatico.ca> wrote in
news:4O*******************@news20.bellglobal.com:
If you notice, most Microsoft objects include a comment in the
tool-tip that shows up when using intelli-sense auto-completion that
describes that property or method. How can I add such comments to my
own objects?


The intellisense comments are extraced from the xml comments.

///<summary>some description</summary>
///<param name="a">my param description</param>
public void somefunction(int a)
{
}

--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at
Nov 15 '05 #2
Thanks Peter, but that does work for me.

Typing in "///" does bring up the empty XML comments, but if I fill them in,
those comments don't end-up showing-up in the intellisense tooltip when
using that object from another project. Maybe there's some build setting
that required for this to work?

Thanks and regards,

Chris
"Peter Koen" <koen-newsreply&snusnu.at> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
"Christopher Kowalski" <ck****@sympatico.ca> wrote in
news:4O*******************@news20.bellglobal.com:
If you notice, most Microsoft objects include a comment in the
tool-tip that shows up when using intelli-sense auto-completion that
describes that property or method. How can I add such comments to my
own objects?


The intellisense comments are extraced from the xml comments.

///<summary>some description</summary>
///<param name="a">my param description</param>
public void somefunction(int a)
{
}

--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at

Nov 15 '05 #3
"Christopher Kowalski" <ck****@sympatico.ca> wrote in
news:zt*********************@nnrp1.uunet.ca:
Thanks Peter, but that does work for me.

Typing in "///" does bring up the empty XML comments, but if I fill
them in, those comments don't end-up showing-up in the intellisense
tooltip when using that object from another project. Maybe there's
some build setting that required for this to work?

Thanks and regards,

Chris


I'm not sure, but could be that you have to include the attr.
BrowsableAttribute.

I've used this with custom controls and it always worked perfectly.
--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at
Nov 15 '05 #4
Peter,
Make sure that you have set 'XML Documentation File Path' in the
project's Configuration Properties for the release and debug items. This
will cause the project to build the associated documentation file for
Intellisense.

Ron Allen
"Peter Koen" <koen-newsreply&snusnu.at> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
"Christopher Kowalski" <ck****@sympatico.ca> wrote in
news:zt*********************@nnrp1.uunet.ca:
Thanks Peter, but that does work for me.

Typing in "///" does bring up the empty XML comments, but if I fill
them in, those comments don't end-up showing-up in the intellisense
tooltip when using that object from another project. Maybe there's
some build setting that required for this to work?

Thanks and regards,

Chris


I'm not sure, but could be that you have to include the attr.
BrowsableAttribute.

I've used this with custom controls and it always worked perfectly.
--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at

Nov 15 '05 #5
Once you've added the comments change the 'Configuration
Properties->Build->XML Documentation File' project property. The name
should be TheNameOfYourAssembly.xml.

When you add a reference to an assembly, intellisense will look for this
xml file at the same location where the assembly is, if there's such a file
it will copy it to the project's reference directory and it will show the
comments in intellisense.

You should provide your xml file alongside your assembly when doing
development.

--
Gabriel Esparza-Romero, Visual C# Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Nov 15 '05 #6

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

Similar topics

32
2816
by: Bernard Koninckx | last post by:
Hello everybody, I'm a newbie and I search a good editor or IDE for programming in PHP. If you have used some of these, could you make a comparison between those tools. TIA Bernard
10
1225
by: Sahil Malik | last post by:
This is a C# project. My code highlighting decides to dissappear randomly. With that goes away my intellisense, ability to copy paste, and my sanity. What is going on? - Sahil Malik...
9
3249
by: Jim Starcher | last post by:
I cannot get the intellisense hints to work on my class constructors. Would you please tell me what I am doing wrong? public class MyObject { //Constructors /// <summary> /// Used to...
14
1413
by: Rob Meade | last post by:
Hi all, Having created a secure login, and then create session variables to detect wether or not a user is logged in - I would now like to be able to off a log out page! :) I have found the...
1
1854
by: JS | last post by:
Hello, I am using ASP .Net to create my own web controls and I have noticed that there is one too many requirements that forces the developer to be aware of and get involved with. In the past...
1
1108
by: =?Utf-8?B?ZXNveDE5MzY=?= | last post by:
How do you access the new drivers/software for these items to run with Windows VISTA. KBD is model 1011 and Mouse is model1007. any help appreciated.
6
2141
by: geevaa | last post by:
Hi Group, The page 167 of book Learning PHP5 by David Sklar says that setcookie() and session_start() must be added before any output. I tried to use that functions at last line but no warning!....
2
2054
by: geevaa | last post by:
Hi Group, The page 167 of book Learning PHP5 by David Sklar says that setcookie() and session_start() must be added before any output. I tried to use that functions at last line but no warning!....
0
7227
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,...
0
7127
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
7331
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,...
1
7054
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
7501
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
5633
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,...
0
4713
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...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.