Custom controls

learning

Active member
Joined
Aug 31, 2009
Messages
28
Location
Michigan
Programming Experience
5-10
Does anyone have an example of a custom control that inherits from a forms control? I'm trying to understand the XML tags required to get tool tips and the IDE properties descriptions to show up and couldn't find a complete example.

Thanks in advance for your help.

Dave
 
VB.NET:
Imports System.ComponentModel

''' <summary>
''' This will appear in tool tips in the code window.
''' </summary>
''' <remarks></remarks>
Public Class CustomControl
    Inherits Control

    ''' <summary>
    ''' This will appear in tool tips in the code window.
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    <Category("This determines what section of the Properties window the property is displayed in.")>
    <Description("This will appear at the bottom of the Properties window.")>
    Public Property SomeProperty As String

    ''' <summary>
    ''' This will appear in tool tips in the code window.
    ''' </summary>
    ''' <param name="argument">
    ''' This will appear in tool tips in the code window.
    ''' </param>
    ''' <remarks></remarks>
    Public Sub SomeMethod(argument As String)
        '...
    End Sub

End Class
 
Back
Top