Collection editor in a custom control using VB

Posted on 2005-04-28
Last Modified: 2012-06-21

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??

Question by:hqdev
    LVL 33

    Expert Comment

    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

    Author Comment

    I want to have a collection editor at design time. That's what I've found in C#.
    LVL 33

    Accepted Solution

    ooh, it probably had some funky attributes before the declarations, you may just be able to move these over to
    [MyFunkyAttribute()] Public MyCollection Items;

    <MyFunkyAttribute()> Public Items as MyCollection

    Author Comment

    Sorry, I don't understand your last comment!

    Author Comment


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

    Author Comment

    After hours of research I found a excellent e-book covering all that info in VB, at

    Thanks anyway

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now