Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.

In a forms project VB.net VS2010.
I have a form with it's controls and some attributes that I defined. What I want to do is show in Intellisense a small description of what the attribute means.
I know you can do it for functions but I am not so sure for variables.
Public Class Form1
   Dim totalOrders as Integer 'Holds the total amount of orders 
   Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
     'some code 
   end sub
end class
Posted

1 solution

I think that you want to show description of any attributes and function at run time.

You can achieve with following line of code.

<br />
Public Class Form1<br />
<pre lang="vb">'''<Summary>Holds the total amount of orders</Summary>   'This will be display description at run time when you user this variable<br />
 '''<Remarks>Add your Remark here.</Remarks><br />
Dim totalOrders as Integer</pre><br />
<br />
<br />
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
   'some code<br />
end sub<br />
<br />
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900