Friday, March 16, 2012

passthrough properties

(I didn't get any response on the first post of this. Is this the right
forum
for ASCX user controls?)
I am writing a user control that has a combo box in it (3rd party). I want
to pass thru properties from the control so I wrote the following:
Public WriteOnly Property AutoPostBack(ByVal TF) As Boolean
Set(ByVal Value As Boolean)
cbVendors.AutoPostBack = TF
End Set
End Property
It compiles fine but it doesn't show when I use the user control. What am I
doing wrong? Is there any good articles on passing through properties in
user controls?
Thanks,
GTry making it Public Shared...
"G. Dean Blake" wrote:

> (I didn't get any response on the first post of this. Is this the right
> forum
> for ASCX user controls?)
>
> I am writing a user control that has a combo box in it (3rd party). I wan
t
> to pass thru properties from the control so I wrote the following:
> Public WriteOnly Property AutoPostBack(ByVal TF) As Boolean
> Set(ByVal Value As Boolean)
> cbVendors.AutoPostBack = TF
> End Set
> End Property
> It compiles fine but it doesn't show when I use the user control. What am
I
> doing wrong? Is there any good articles on passing through properties in
> user controls?
> Thanks,
> G
>
>

0 comments:

Post a Comment