about delegate


    Sponsored Links


  • 1. Help needed
    Hi .. I'm max.. I need to do my MCAD and planning to start .. I have no idea of what .Net is. Can any body please suggest me how to prepare for the test. thanks in advance.
  • 2. Cant Validate Home Address For MCAD Welcome Kit
    Hi I passed my 3rd exam in the MCAD series on March 22nd. Since then I have tried to validate my home address to have the MCAD kit sent to me, but every time I click the Submit Request button on the page https://mcp.microsoft.com/mcp/tools/WelcomeKitValidateAddress.aspx and click OK, I receive the following error page https://mcp.microsoft.com/MCP/error/errordb.aspx which states Your session has timed out or network problems prevented the application from receiving the MCT enrollment information. Please try again. If the problem persists, please contact your Microsoft Regional Service Center. I have tried many times to get past without success and have emailed emeamcpATmsdirectservicesDOTcom (I've spam proofed the actual address) - the first time on the 29th March and have received only automated respnses and no resolution. Could you please assist me in my attempts to validate my home address and receive the MCAD.Net kit? Cheers Anthony Microsoft Certified Professional ID: 3411426
  • 3. 70-316: Sql Server Debuging Question
    I was taking a sample test for the 70-316 exam, and it ask me how to set up V Studio to trace into a Sql stored procedure. However, I can not find anything in the 70-316 prep book concerning this topic. Is this topic covered on the current 70-316 exam or is the question a sample exam aberation? Confused!
  • 4. What's the minimum score for exams?
    Hi, I'm playing with some tests for MCAD - Transcender's from 2002 - and I got over 700 points at each thus failing them. I'm curious, what's the minimum score to pass the exam? Thank you, Dan BTW, one recent question, that made me fail a test, has this answer: "Constructors cannot be defined as private"...WTF?! is this the kind of tests Transcender releases???? Have you met such wrong answer tests?

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 99 guest