Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / January 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roby2222 - 27 Jan 2005 20:11 GMT
Is there any advantage to using the Handles clause vs. using the AddHandler
to map events?
Chris, Master of All Things Insignificant - 27 Jan 2005 20:29 GMT
AddHandler can be used at runtime.  That's the biggest one for me.  There
may be others.

Chris

> Is there any advantage to using the Handles clause vs. using the
> AddHandler
> to map events?
Patrice - 28 Jan 2005 09:25 GMT
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
Signature


> Is there any advantage to using the Handles clause vs. using the AddHandler
> to map events?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.