Adding special comments

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top