Is it possible to create a Controls Collection?

S

shapper

Hello,

Is it possible to create a property which is a collection of controls
and then access each control in it?

In this moment all I have is a property of type control:

Private _Register As Control = Nothing
Public Property Register() As Control
Get
Return _Register
End Get
Set(ByVal value As Control)
_Register = value
End Set
End Property

Thanks,

Miguel
 
G

gineshkumar

You can use Controlcollection, in that case you have to provide a
parent control.

Other wise you can use a generic list of controls
private List<Control> _Controls = new List<Control>;
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top