Default method!

How can I make it so that my Item method of my collection is the default one so I can do

myObject(0).property
instead of
myObject.Item(0).property

?!
kuistAsked:
Who is Participating?
 
Richie_SimonettiConnect With a Mentor IT OperationsCommented:
Don't use default method. .net will not supports it anymore.
But if you insist,stand up in your procedure, go to Tools, Procedure attributes, click in Advanced button and select Default from Procedure Id combo box.
0
 
Anthony PerkinsCommented:
Please maintain your open questions:

Questions Asked 20
Last 10 Grades Given A A C A A A A B B A  
Question Grading Record 13 Answers Graded / 13 Answers Received

Thanks,
Anthony
0
 
kuistAuthor Commented:
There we are!
0
 
kuistAuthor Commented:
Great!

I know it's not supported by .NET, but I just want my class to work like the 'others' in VB6 :)


Thanks a lot!

Here are a little extra point for the B I gave you :)
0
 
Richie_SimonettiIT OperationsCommented:
Thanks for "A" grade.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.