That looks like proper Property set code to me. What is the line of code
that the designer is generating in the Sub InitializeCompo nent for a color
that you select in the Properties Settings?
"Nathan Sokalski" <njsokalski@hot mail.comwrote in message
news:er%23hyAFO JHA.1896@TK2MSF TNGP02.phx.gbl. ..
that the designer is generating in the Sub InitializeCompo nent for a color
that you select in the Properties Settings?
"Nathan Sokalski" <njsokalski@hot mail.comwrote in message
news:er%23hyAFO JHA.1896@TK2MSF TNGP02.phx.gbl. ..
Actually, it is a custom control that inherits System.Web.UI.C ontrol. My
code for the BackgroundColor property is:
>
Public WriteOnly Property BackgroundColor () As System.Drawing. Color
Set(ByVal value As System.Drawing. Color)
Me._backgroundc olor = value
End Set
End Property
>
Me._backgroundc olor is declared as:
>
Private _backgroundcolo r As System.Drawing. Color
>
I know that my syntax for the property declaration is correct, I have used
it many times in other classes for other types (such as String, Integer,
etc.), just never with System.Drawing. Color. Any ideas? Thanks.
--
Nathan Sokalski
njsokalski@hotm ail.com
>
code for the BackgroundColor property is:
>
Public WriteOnly Property BackgroundColor () As System.Drawing. Color
Set(ByVal value As System.Drawing. Color)
Me._backgroundc olor = value
End Set
End Property
>
Me._backgroundc olor is declared as:
>
Private _backgroundcolo r As System.Drawing. Color
>
I know that my syntax for the property declaration is correct, I have used
it many times in other classes for other types (such as String, Integer,
etc.), just never with System.Drawing. Color. Any ideas? Thanks.
--
Nathan Sokalski
njsokalski@hotm ail.com
>
Comment