HighTechTalks DotNet Forums  

Delegates vs subroutines and functions?

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Delegates vs subroutines and functions? in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?d2lubGlu?=
 
Posts: n/a

Default Delegates vs subroutines and functions? - 08-27-2007 , 10:58 PM






Hello
Since VB.net allows you to create a form that can call a subroutine or
functions existing in classes to do the work, when and why would you need to
create a "delegate"?

Reply With Quote
  #2  
Old   
Sajjad Haider
 
Posts: n/a

Default Re: Delegates vs subroutines and functions? - 08-28-2007 , 03:02 AM






Hi,

Delegate is a reference of a method, like you are using a 3rd party library
and you want to call a method on such events so they will create a delegate
method and you have to pass the function name so it can call your function
on such events.


"winlin" <winlin (AT) verizon (DOT) com> wrote

Quote:
Hello
Since VB.net allows you to create a form that can call a subroutine or
functions existing in classes to do the work, when and why would you need
to
create a "delegate"?


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.