AddHandler vs. Handles Clause in VB.NET...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any advantage to using the Handles clause vs. using the AddHandler
to map events?
 
AddHandler can be used at runtime. That's the biggest one for me. There
may be others.

Chris
 
This is just different.

Handles is a way to declare that a sub handles a particular events (you can
also have multiple references in the handles clauses).
AddHandler does this at runtime.

I'm using both depending on the situation...



Patrice
 
Back
Top