Link to home
Start Free TrialLog in
Avatar of hqdev
hqdevFlag for Canada

asked on

Collection editor in a ASP.net custom control using VB

Hi,

I have a custom web controls and I want to add a "collection property". I've found a couple of examples of what I'm looking for but all in C#.
I don't know any C and the C to VB converters aren't good enough to translate that kind of code without hassles.
So anyone have a good code snippet showing how to implement a collection property to a custom web control??

Thanks
Avatar of raterus
raterus
Flag of United States of America image

I usually just inherit from arraylist and give it a new name, that holds pretty much anything.

Public Class StuffCollection : Inherits ArrayList

End Class

..

Dim s as StuffCollection = new StuffCollection
s.Add(Something)
Avatar of hqdev

ASKER

I want to have a collection editor at design time. That's what I've found in C#.
ASKER CERTIFIED SOLUTION
Avatar of raterus
raterus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hqdev

ASKER

Sorry, I don't understand your last comment!
Avatar of hqdev

ASKER

Oops!

Sorry about that, I'm so stuck with that collection issue, I didn't realize I was asking the same question twice.
Avatar of hqdev

ASKER

After hours of research I found a excellent e-book covering all that info in VB, at
http://www.bluevisionsoftware.com/WebSite/Books/0972317929/Ch16.pdf

Thanks anyway