List controls

J

JStemerdink

Hi all,

I have a custom control. I want to add a property that lists the controls on
the page, so I can choose one to iteract with.
A bit like the "ControlToValidate" property.

I tried:

Public Property Control2Use() As Control

Get
Return _scrollerID
End Get
Set(ByVal Value As Control)
_scrollerID = Value
End Set
End Property
This generates errors when viewing the page I use the control on.

Can anyone point me in the right direction?
TIA,
Jeroen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top