Question How to set the autocomplete's preferred (custom) values?

lachlan

New member
Joined
Oct 29, 2008
Messages
1
Programming Experience
1-3
Is it possible to make a custom list of preferred values for a sub/function?

For example, with the MsgBox:
vbnetmsgbox.jpg

Also, how do I go about making a description for the value to be entered, as shown in the image in the yellow box?

Thanks, Lachlan.
 
Last edited:
The custom list of predefined values is called Enum (enumeration). The parameter can be made Optional, in which case you have to define a default value. The decriptions are called "Xml documentation" and works like special code comments that integrates with the Intellisense help system, see help topic How to: Create XML Documentation in Visual Basic
VB.NET:
Private Enum Customlist
    OptionA
    OptionB
End Enum

''' <summary>
''' This method does nothing.
''' </summary>
''' <param name="param">An optional option from Customlist options</param>
''' <remarks></remarks>
Private Sub Method(Optional ByVal param As Customlist = Customlist.OptionA)

End Sub
 
Back
Top