Connecting Tech Pros Worldwide Forums | Help | Site Map

Class and property question

Marc R.
Guest
 
Posts: n/a
#1: Jan 29 '06
Hi all,

I just created a property for my class that inherits nodes to set and get
some additional fileds,

I would like to to enable on each property the tool tips that show while we
actually start to type the property's name into our codes like :

textbox1.textalign (has that information beside it : "Set or Get how text is
align in a system.windows.forms.textbox"

or into a dataview.item would say : "Get a row of data from the specified
table"

how can I implement that ?

I've tried something like that but I can be completely way out.
Public Property ID()

<summary> "would like to explain properties here" </summary>

Get

Return p_id

End Get

Set(ByVal Value)

p_id = Value

End Set

End Property



Marc R.





Cor Ligthert [MVP]
Guest
 
Posts: n/a
#2: Jan 29 '06

re: Class and property question


Marc

In version 2005 that is standard in VB Net

I see this article for the first time, however I thought your part is at the
bottom.

http://msdn.microsoft.com/library/de...ratingdocs.asp

I hope this helps,

Cor

"Marc R." <Nospam@NewgroupsONLY.com> schreef in bericht
news:umg8CDKJGHA.3408@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi all,
>
> I just created a property for my class that inherits nodes to set and get
> some additional fileds,
>
> I would like to to enable on each property the tool tips that show while
> we actually start to type the property's name into our codes like :
>
> textbox1.textalign (has that information beside it : "Set or Get how text
> is align in a system.windows.forms.textbox"
>
> or into a dataview.item would say : "Get a row of data from the specified
> table"
>
> how can I implement that ?
>
> I've tried something like that but I can be completely way out.
> Public Property ID()
>
> <summary> "would like to explain properties here" </summary>
>
> Get
>
> Return p_id
>
> End Get
>
> Set(ByVal Value)
>
> p_id = Value
>
> End Set
>
> End Property
>
>
>
> Marc R.
>
>
>
>[/color]


Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#3: Jan 29 '06

re: Class and property question


"Marc R." <Nospam@NewgroupsONLY.com> schrieb:[color=blue]
> I just created a property for my class that inherits nodes to set and get
> some additional fileds,
>
> I would like to to enable on each property the tool tips that show while
> we actually start to type the property's name into our codes like :
>
> textbox1.textalign (has that information beside it : "Set or Get how text
> is align in a system.windows.forms.textbox"
>
> or into a dataview.item would say : "Get a row of data from the specified
> table"
>
> how can I implement that ?[/color]

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://classicvb.org/petition/>

Peter Macej
Guest
 
Posts: n/a
#4: Jan 29 '06

re: Class and property question


> I've tried something like that but I can be completely way out.[color=blue]
> Public Property ID()
>
> <summary> "would like to explain properties here" </summary>[/color]

The XML comment must be placed above property definition:
<summary> would like to explain properties here </summary>
Public Property ID()
....

Then you must generate XML documentation file and place it in the same
folder as your class DLL. You can use our VBdocman .NET to do all the
work for you. Here is the help topic for your particular need:
http://www.vbdocman.com/net/help/ind...ntext_help.htm

--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code
Marc R.
Guest
 
Posts: n/a
#5: Jan 30 '06

re: Class and property question


thanks for your help,

Most of the solutions are went you have an DLL, wich I don't use, that class
is only use for me to build my treeview with binded feild to a dataset.
Since I didn't discover no way to Bind a treview nodes to a dataset.

Thanks anyway, got good information for next project with an dll.

"Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
news:%23jFFNpKJGHA.1132@TK2MSFTNGP10.phx.gbl...[color=blue]
> Marc
>
> In version 2005 that is standard in VB Net
>
> I see this article for the first time, however I thought your part is at
> the bottom.
>
> http://msdn.microsoft.com/library/de...ratingdocs.asp
>
> I hope this helps,
>
> Cor
>
> "Marc R." <Nospam@NewgroupsONLY.com> schreef in bericht
> news:umg8CDKJGHA.3408@TK2MSFTNGP12.phx.gbl...[color=green]
>> Hi all,
>>
>> I just created a property for my class that inherits nodes to set and get
>> some additional fileds,
>>
>> I would like to to enable on each property the tool tips that show while
>> we actually start to type the property's name into our codes like :
>>
>> textbox1.textalign (has that information beside it : "Set or Get how text
>> is align in a system.windows.forms.textbox"
>>
>> or into a dataview.item would say : "Get a row of data from the specified
>> table"
>>
>> how can I implement that ?
>>
>> I've tried something like that but I can be completely way out.
>> Public Property ID()
>>
>> <summary> "would like to explain properties here" </summary>
>>
>> Get
>>
>> Return p_id
>>
>> End Get
>>
>> Set(ByVal Value)
>>
>> p_id = Value
>>
>> End Set
>>
>> End Property
>>
>>
>>
>> Marc R.
>>
>>
>>
>>[/color]
>
>[/color]


Closed Thread