473,473 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Adding special comments

Hi
I have a maybe simple question, but anyway, when I use the.Net framework
there are lots of very usfull comments while seting properties to objects.
(the little yellow box on the secound linethere is something like "Str1: The
string to search for")

Now my question is, can you ad this type of comments to your own objects you
create, and how?
Nov 21 '05 #1
4 1254
Hi Rotkiv,

yes you can.

You have to use the System.ComponentModel namespace to put special
properties to your controls. For example:

<System.ComponentModel.category("Messages"),
System.ComponentModel.Description("Get the value of your message")> _
Public Shared Function Message() As String
....

I hope that helps.

Best regards,

Jorge Serrano Pérez
MVP VB.NET
"Rotkiv Namego" wrote:
Hi
I have a maybe simple question, but anyway, when I use the.Net framework
there are lots of very usfull comments while seting properties to objects.
(the little yellow box on the secound linethere is something like "Str1: The
string to search for")

Now my question is, can you ad this type of comments to your own objects you
create, and how?

Nov 21 '05 #2
Namego,

"Rotkiv Namego" <Rotkiv Na****@discussions.microsoft.com> schrieb:
I have a maybe simple question, but anyway, when I use the.Net framework
there are lots of very usfull comments while seting properties to objects.
(the little yellow box on the secound linethere is something like "Str1:
The
string to search for")


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

--
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 #3
How do you add comments for the function parameters that show up in
Intellisense?

"Jorge Serrano [MVP VB]" wrote:
Hi Rotkiv,

yes you can.

You have to use the System.ComponentModel namespace to put special
properties to your controls. For example:

<System.ComponentModel.category("Messages"),
System.ComponentModel.Description("Get the value of your message")> _
Public Shared Function Message() As String
...

I hope that helps.

Best regards,

Jorge Serrano Pérez
MVP VB.NET
"Rotkiv Namego" wrote:
Hi
I have a maybe simple question, but anyway, when I use the.Net framework
there are lots of very usfull comments while seting properties to objects.
(the little yellow box on the secound linethere is something like "Str1: The
string to search for")

Now my question is, can you ad this type of comments to your own objects you
create, and how?

Nov 21 '05 #4
"Dennis" <De****@discussions.microsoft.com> schrieb:
How do you add comments for the function parameters that show up in
Intellisense?


.... by reading the reply I gave you :-).

--
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

2
by: Thomas Weholt | last post by:
Hi, I want to add methods to a class instance at run-time based on a base method, but modify one of the existing ( or add if possible ) params of the base method. Say a class like this : ...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
1
by: Jay Sartoris | last post by:
Hi, I'm adding a node to my XML document using DOM. When I serialize it, I lose my comments that are above my root node. I've created an OutputFormat obect and set the setOmitComments(false)...
8
by: nicolas.sanguinetti | last post by:
Hi, I want to add custom attributes to my xhtml documents to use with my DOM scripts. For example, I want to have some tags -say, the <h1>- have an attribute and a . The thing is that I also...
1
by: LellD | last post by:
It seems not unusual for me that I have special chars like < (less than) or > (greater than) in C# comments, especially in <code> sections. For instance, <code> if(a<b) c=3; </code> should be a...
1
by: Max | last post by:
Searched all over google and can't seem to find how to do this. How do I go about adding comments about my own functions and sub-procedures? Like when I use them, the tool-tip tells me more then...
38
by: Astra | last post by:
Hi All Could somebody please confirm that if I change my JS expression test from: if (!(/^*$/.test(document.form1.fred.value))) to if (!(/^*$/.test(document.form1.fred.value)))
12
by: Bob Jones | last post by:
I have an odd business requirement and I think that the implementation is not correct in the terms of OOP development. Any help on the concepts would be very appreciated! We currently have a...
1
by: clemenslinders | last post by:
Adding comments aka QuickInfo to intellisense: On this forum I found in it's history the following thread: http://www.thescripts.com/forum/thread254408.html Someone also wanted to add comments...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.