about delegate


    Sponsored Links


  • 1. New Updated BizTalk Exam
    Does anyone know if there will be a new BizTalk exam soon? I really don't want to get certified with a 4 yr old exam.
  • 2. Wrong exam
    Hello i already past the 70-306 (Win Apps) and 70-305 (Web Apps), both Visual Basic .NET exams. But now i registerd for the 70-320 (Web services... ) exam, a C# exam I can't cancel it and change it to the VB.NET version. Will this exam count for my MCAD certification ? kind regards Dieter De Preester
  • 3. Time Limits
    Hi all, Can anyone please let me know whether there is any time limit for completing MCAD & MCSD certifications? I mean suppose I have appeared for my first exam in MCAD, do I need to complete the pending 2 exams of MCAD within some time limit? Also, after completing MCAD, if I want to go for MCSD, do i need to complete the pending 2 exams of MCSD within some time limit? Thanks in advance. Raj ;-)
  • 4. Please clarify my doubt
    Hello friends, I am David. I have a plan to do certificate. My skill sets are ASP.NET using C#. I have no idea on this MCAD. So please Help me to know the exams i have to take for these skills. Thank you David
  • 5. Am I MCAD Certified if..
    Am I MCAD Certified if I take these exams: 70-305 70-306 70-310 Thanks in advance -James

about delegate

Postby qf » Sat, 25 Dec 2004 06:08:54 GMT

Hi, Everyone, in the addhandler, event and addressof, how 
they are related to the delegate. Why the addhandler need 
delegate. For example, addHandler a, addressof b, the a 
is delegate? b is an instance delegate of a. How do they 
work. I confuse
Thank you!

about delegate

Postby yeah » Sat, 25 Dec 2004 06:19:53 GMT

Hi, everyone, I confuse about delegate, in the 
addhandler, event, what are the functions of a delegate. 
for exmaple, Addhandler a, addressof b, the a is a event 
which means delegate, b is the instance of a delegate? 
why do we need delegate involved in the addHandler.

RE: about delegate

Postby U2Vhbg » Wed, 29 Dec 2004 08:01:03 GMT

Ill take a stab at this..

the adhandler a, adressof b is basically telling the application that 
anytime it sees a actually use b. 

Classic example is that you have a program with a ton of click events 
already in it but you want to add something neat to all click events without 
really changing the base click event. Delegates give the same event, a new 

While Override actually adds or changes functions within the actual event.

Now...I am still learning this myself so if any of it sounds odd, dont take 
my word for it. I have read several books perparing for this I am must say 
that "The visual basic .net programming language" book part of the .net 
developement series (cant see author from here) ito be a god send

about delegate

Postby Xavier » Thu, 30 Dec 2004 01:15:06 GMT


Addhandler Object.Event, addressof Sub

The addressof Sub Part is working as a delegate that is 
pointing to a function
The most important thing about Delegates is that they can 
point to any Sub with identical Signature, 
in this case the signature is the event signature.
By the way it's not exactly that the addhandler needs an 
explicit delegate because when you are using addressof you 
are using an implicit delegate.

For instance when you use

Addhandler x.click, addressof MyEventController

X can be an instance of a Button
Click is the event you are connecting to
MyEventController is the Sub who will be receive the 
program flow when the event click from the button x will 
be raised

MyEventController must be a Sub with (sender as object , e 
as eventargs) as a signature this is the restriction that 
works as a delegate

Return to mcad


Who is online

Users browsing this forum: No registered users and 51 guest