Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Justin@NetZero.com

    #1

    Error

    I downloaded some coed and got this one warning message. How do I
    correct it

    The code fragment

    <Category("Prog ress Bar"), _
    Description("Pr ogress Bar Border Style.")_
    Public Property BorderStyle() As BorderStyle
    Get
    Return pnlBar.BorderSt yle
    End Get
    Set(ByVal Value As BorderStyle)
    pnlBar.BorderSt yle = Value
    End Set
    End Property



    The error message

    property 'BorderStyle' shadows an overloadable member declared in the
    base class 'UserControl'. If you want to overload the base method,
    this method must be declared 'Overloads'. c:\My
    Documents\Micro soft Visual
    Basic\DIMo.Net\ Progress_Bar_Co ntrol\Progress_ Bar\UserControl 1.vb



  • Armin Zingler

    #2
    Re: Error

    <Justin@NetZero .comschrieb
    I downloaded some coed and got this one warning message. How do I
    correct it
    >
    The code fragment
    >
    <Category("Prog ress Bar"), _
    Description("Pr ogress Bar Border Style.")_
    Public Property BorderStyle() As BorderStyle
    Get
    Return pnlBar.BorderSt yle
    End Get
    Set(ByVal Value As BorderStyle)
    pnlBar.BorderSt yle = Value
    End Set
    End Property
    >
    >
    >
    The error message
    >
    property 'BorderStyle' shadows an overloadable member declared in
    the base class 'UserControl'. If you want to overload the base
    method, this method must be declared 'Overloads'. c:\My
    Documents\Micro soft Visual
    Basic\DIMo.Net\ Progress_Bar_Co ntrol\Progress_ Bar\UserControl 1.vb
    As the message says the method must be declared 'Overloads':

    Public Overloads Property BorderStyle() As BorderStyle


    Armin

    Comment

    Working...