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
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
Comment