[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Collection editor in a ASP.net custom control using VB

Posted on 2005-04-28
7
Medium Priority
?
277 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:hqdev
  • 4
  • 2
6 Comments
 
LVL 33

Expert Comment

by:raterus
ID: 13888124
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)
0
 

Author Comment

by:hqdev
ID: 13888173
I want to have a collection editor at design time. That's what I've found in C#.
0
 
LVL 33

Accepted Solution

by:
raterus earned 200 total points
ID: 13888221
ooh, it probably had some funky attributes before the declarations, you may just be able to move these over to vb.net
[MyFunkyAttribute()] Public MyCollection Items;

<MyFunkyAttribute()> Public Items as MyCollection
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:hqdev
ID: 13888983
Sorry, I don't understand your last comment!
0
 

Author Comment

by:hqdev
ID: 13893578
Oops!

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

Author Comment

by:hqdev
ID: 13895869
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
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Integration Management Part 2
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month19 days, 20 hours left to enroll

872 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