Offistart - Virtual Offices, Office Space, Business Support Services
*Home>>>Call Handling

Visual Basic 2008: How do I get an array/collection of objects with events?


Arrays can't be declared WithEvents, and I can't find a way of declaring a collection of a specifc object, so collections can't be WithEvents.
I have made an object called Document, which has various events. I want to have a set of these Documents, and to be able to handle events from each Document, refering to each by an index or a key value. How do I do this?

You obviously do not understand what events do, because if you did, you would not of asked this question.

To define an array use a Dim or Private or Public Statement.

To use an event to access the array use Public Event, then use RaiseEvent to run an event. Don't forget the AddHandler to set the event in another Class.

If you do not understand what I explained to you, read up on Events.

Tags
  Commercial Space   Office Space   Business Services   Business Address   Call Forwarding   Call Handling   Answering Service   Telephone Answering   Mail Forwarding   Virtual Address   Virtual Assistant   Virtual Business
Related information
  • Do you think the President should call people names, or retaliat smears with namecalling?

    LOL - when I heard about the website to "combat smears" I almost died laughing. I can not believe that a man who says so little about what his policies will be/are, has the time to retal...

  • What's the name of the disease called where someone can't drink any liquids & only jewish people can get it?

    jewism

    ...
  • Advice on handling my step son?

    Sounds like he has a major attitude problem. If i were you i would talk to your husband and make him talk to him. Tell him to explain to your son that you may not be his biological mother, he still...

  • How careful should we be with hygiene?

    That will educate them for life........i hope, some never learn , i hate a dirty bathroom or kitchen particularly at work

    ...
  • What is this baking utensil called?

    It can be called either a pastry cutter or pastry blender.

    ...
  • How do get the hammer handle from Ms. Feelgood?

    He's the one they call dr. feelgood he's the one that makes you feel ALRIGHT! HE GONNA BE YOUR FRANKENSTEIN.

    ...
  • Cb question?

    My handle was warthog :) We did have our fun, I can't quit smiling when thinking about it. :) Hey Lioness, what's your 20?, Warthog here at the Kmart parking lot. 10/4 Good Buddy<...

  • For the past few nights, i have dreamt that i was married to my boyfriend and i was pregant or had a kid?

    Being married generally represents unity with yourself. For instance, learning to love and honor your "you" and this is a good sign because it's hard to do for some people. Pregn...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster