[2005] Add Intellisense To Class
What do I add to the code (which is part of a class) below...
Code:
Public Score(0 To 4, 0 To MaxStudentCount) As String
So that when I'm coding in my main program and I type the following...
Code:
Course.Student(i).Score(
VB's intellisense will pop up and suggest something other than....
How do I add the "suggestion"?
I'd like to see something more like
Code:
Score(Quarter as integer, GradeIndex as integer) As String
Re: [2005] Add Intellisense To Class
Just on top of the method you press the Quotes key three times and it will place the xml code on top of the method. Then you just add a summary and the parameter discriptions.
Re: [2005] Add Intellisense To Class
Um, where? I tried Quotes three times in several places. No luck.
Re: [2005] Add Intellisense To Class
it hase to be right on top of the method and single quotes. Here is an example:
vb Code:
''' <summary>
'''
''' </summary>
''' <param name="keyComb"></param>
''' <remarks></remarks>
Public Sub Reset(ByVal keyComb As Keys)
Me._alt = Keys.None
Me._control = Keys.None
Me._shift = Keys.None
Me._key = Keys.None
Me._format = String.Empty
Me.SetKeys(keyComb)
End Sub
Re: [2005] Add Intellisense To Class
Ok, I got the XML to show up, but I don't know what to do with it¡!
vb Code:
''' <summary>
''' Quarter as integer, ScoreIndex as integer
''' </summary>
''' <remarks></remarks>
Public Score(0 To 4, 0 To MaxGradeCount) As String
Re: [2005] Add Intellisense To Class
Ah, you can't show discription of a variable, I was whowing for a method.
Re: [2005] Add Intellisense To Class
You can show the arguments int he description if you add them to the description text. ;)
Re: [2005] Add Intellisense To Class
How would I do that? Can you post an example from my code (in my 3rd post)?
2 Attachment(s)
Re: [2005] Add Intellisense To Class
Was this what you wanted?
VB.NET Code:
''' <summary>
''' This is a summary!
''' </summary>
''' <param name="Animal">Argument1: Animal as Cat. They rule, Meow!</param>
Public Sub Whatever(ByVal Animal As String)
MessageBox.Show("Meow!")
End Sub
http://vbforums.com/attachment.php?a...1&d=1183702687
http://vbforums.com/attachment.php?a...1&d=1183702687