Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Articles & Samples > Visual Basic.Net > Delegates


Search:
What's New - What's Hot
Understanding Relaxed Delegates in VB  Version: 0.00     Price: $0.00  
Total Hits: 22  |  Today: 0Author: Paul Kimmel      Rating:  
Read Reviews | Write Review |  Your Rating: 

Relaxed delegates, one feature among the slew of new stuff coming in "Orcas" (VB 9.0 and .NET 3.5), provide more options for binding event handlers to events—even if the method/handler signatures don't match exactly. Some relaxation of method binding was introduced in VB 8.0 and .NET 2.0, and an even greater relaxation of delegate signatures will be shipped with VB 9.0....

Asynchronous Method Execution Using Delegates  Version: 0.00     Price: $0.00  
Total Hits: 19  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

This month I'll discuss the use of delegates to execute a method in an asynchronous fashion. I'll assume that you already know the fundamentals of programming with delegates, but if not, you should read the December 2002 and January 2003 Basic Instincts columns....

A Primer on Creating Type-Safe References to Methods in Visual Basic .NET     
Total Hits: 107  |  Today: 0Author: Jesse Liberty      Rating:  
Read Reviews | Write Review |  Your Rating: 

Delegates, new in Visual Basic .NET, are type-safe, object-oriented references to methods. By using delegates, you make your methods accessible to others and therefore more extensible. This article provides an introduction to delegates, their benefits, and how they are used.
Here the author shows you how to declare, create, and use delegates to invoke instance and shared methods at run time, and how to implement delegates as properties. He then goes on to provide examples of how delegates are...

Delegates in Visual Basic .NET     
Total Hits: 360  |  Today: 0Author: John Spano      Rating:  
Read Reviews | Write Review |  Your Rating: 

In your Visual Basic .NET journey, you have more than likely encountered a well used, but little understood phenomenon, called a delegate. You use them everyday, but might not know it. In this article we will take a look at what a delegate is and how it will help you to develop better software....

Delegates and the AddressOf Operator  Version: 0.00     Price: $0.00  
Total Hits: 23  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Delegates are objects that refer to methods. They are sometimes described as type-safe function pointers because they are similar to function pointers used in other programming languages. But unlike function pointers, Visual Basic delegates are a reference type based on the class System..::.Delegate. Delegates can reference both shared methods — methods that can be called without a specific instance of a class — and instance methods....

Executing Asynchronous Tasks in ASP.NET  Version: 0.00     Price: $0.00  
Total Hits: 80  |  Today: 0Author: Andrea Colaci      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, Andrea examines the different ways to execute asynchronous tasks in ASP.NET leveraging the built-in Page's methods and Asynchronous Delegates. He begins with a short introduction and then delves deep into the steps involved with the starting of asynchronous tasks using PageAsyncTask and asynchronous delegates with the help of relevant source code, screen shots, a sample project, and links to useful articles....

Discover a Series of Fortunate Event Handlers in Visual Basic     
Total Hits: 116  |  Today: 0Author: Ken Getz      Rating:  
Read Reviews | Write Review |  Your Rating: 

Events are an integral part of your coding arsenal, whether you're using Visual Basic® 6.0, Visual Basic .NET 2002, Visual Basic .NET 2003, or Visual Basic 2005. Forms and controls raise events, and your code handles those events. The first application that you wrote in Visual Basic most likely involved placing a button on a form, handling the click event, and displaying some text in an alert box when you clicked the button at run time. What could be easier?...

Asynchronous Method Execution Using Delegates     
Total Hits: 132  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

This month I'll discuss the use of delegates to execute a method in an asynchronous fashion. I'll assume that you already know the fundamentals of programming with delegates, but if not, you should read the December 2002 and January 2003 Basic Instincts columns.
There are a number of scenarios in which asynchronous execution can be a valuable design technique. For example, you should use asynchronous execution in a Windows® Forms application when you want to execute a long-running command wit...

Programming Events of the Framework Class Libraries     
Total Hits: 215  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

This month's installment represents the final column in a series of three focusing on programming events. In the previous two columns, I showed you how to define and raise events (see Basic Instincts: Programming with Events Using .NET and Basic Instincts: Static Event Binding Using WithEvents). I also explained how to wire up event handlers using both dynamic and static event binding. This month I am going to conclude my coverage of events by showing some practical examples of handling some of ...

.NET Delegates: Making Asynchronous Method Calls in the .NET Environment     
Total Hits: 123  |  Today: 0Author: Richard Grimes      Rating:  
Read Reviews | Write Review |  Your Rating: 

One of the many great features of the .NET Framework is that it has asynchronous infrastructure built in. In .NET you can call any method asynchronously by defining a delegate for the method and calling the delegate's asynchronous methods. This is beneficial to your application because when a synchronous call is made, the calling thread is blocked until the method completes whereas an asynchronous call is made on a different thread, and this allows the original thread to continue its work while ...

Delegates, Part 2     
Total Hits: 112  |  Today: 0Author: Jeffrey Richter      Rating:  
Read Reviews | Write Review |  Your Rating: 

Two months ago (April 2001) I introduced the Microsoft® .NET Framework�s version of callback methods: delegates. In that column I explained how declaring a delegate caused the compiler to generate a class derived from System.MulticastDelegate and how each instance of this class contains two private fields (_target and _methodPtr) that indicate which object the callback method should operate upon. I also introduced a third private field, _prev, which is used to maintain a linked-list chain...

Gate to Delegates in VB.NET     
Total Hits: 134  |  Today: 0Author: Arun Nair.      Rating:  
Read Reviews | Write Review |  Your Rating: 

Visual Basic .NET has not only extended the versatility of the Visual Basic language but also harnessed the power of the .NET framework, the new "Delegate" feature is one of them. So now you don't get the sneer of the self proclaimed C++ or Java programmers looking down on VB programmers as mere mortals!...

Understanding Relaxed Delegates in VB     
Total Hits: 267  |  Today: 0Author: Paul Kimmel      Rating:  
Read Reviews | Write Review |  Your Rating: 

Relaxed delegates, one feature among the slew of new stuff coming in "Orcas" (VB 9.0 and .NET 3.5), provide more options for binding event handlers to events—even if the method/handler signatures don't match exactly. Some relaxation of method binding was introduced in VB 8.0 and .NET 2.0, and an even greater relaxation of delegate signatures will be shipped with VB 9.0.
Many advanced design patterns depend on delegates. In fact, delegates actually are an implementation of the Observer behavio...

Implementing Callback Notifications Using Delegates     
Total Hits: 676  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

Delegates are a critical aspect of the Microsoft® .NET Framework and are required learning for many programmers. They will take some time to master, but once you learn how to program with delegates, you'll be thrilled with the possibilities they offer. Let's dig in. First, you should know that events in the .NET Framework are layered on top of delegates. When you use an event-driven application framework such as Windows® Forms or ASP.NET, your knowledge of delegates will make you a much stronger...

Delegates, Part 2     
Total Hits: 275  |  Today: 0Author: Jeffrey Richter      Rating:  
Read Reviews | Write Review |  Your Rating: 

Two months ago (April 2001) I introduced the Microsoft® .NET Framework's version of callback methods: delegates. In that column I explained how declaring a delegate caused the compiler to generate a class derived from System.MulticastDelegate and how each instance of this class contains two private fields (_target and _methodPtr) that indicate which object the callback method should operate upon. I also introduced a third private field, _prev, which is used to maintain a linked-list chain of del...

Understanding Delegates in Visual Basic .NET     
Total Hits: 456  |  Today: 0Author: Paul Kimmel.      Rating:  
Read Reviews | Write Review |  Your Rating: 

Visual Basic 6 provided an opportunity for us to become familiar with events as a dynamic aspect of Windows programming. From Chapter 8, you know that an event is an occurrence in your program, and an event handler is a procedure defined to respond to that occurrence. To review, the event-handling mechanism works because procedures are effectively addresses. If we know the arguments that are passed to a procedure and have a procedure's address, we can invoke a procedure because this is how proce...

Calling the Web Methods Asynchronously     
Total Hits: 362  |  Today: 0Author: Brainstorming Guy      Rating:  
Read Reviews | Write Review |  Your Rating: 

If we simply make a call to the Web Method from a client program, the call will be a Synchronous one. That's our client application will not process any commands or lines which are present in our form. It always waits for the response comes back from the Server. The Proxy class which is generated for the Web Service enable us to make a asynchronous calls to a Web Service. When we make an asynchronous call, the client sends the request and it will not hold the execution for the Server response. I...

Gate to Delegates in VB.NET     
Total Hits: 324  |  Today: 0Author: Arun Nair      Rating:  
Read Reviews | Write Review |  Your Rating: 

Visual Basic .NET has not only extended the versatility of the Visual Basic language but also harnessed the power of the .NET framework, the new "Delegate" feature is one of them. So now you don't get the sneer of the self proclaimed C++ or Java programmers looking down on VB programmers as mere mortals! More about Delegates, what is the closest you can think of a Delegate? Well a Delegate is an entity that is entrusted with the task of representation, assign or passing on information. In code s...

Implementing Callback Notifications Using Delegates  Version: 0.00     Price: $0.00  
Total Hits: 18  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

Delegates are a critical aspect of the Microsoft® .NET Framework and are required learning for many programmers. They will take some time to master, but once you learn how to program with delegates, you'll be thrilled with the possibilities they offer....

Implementing Callbacks with a Multicast Delegate  Version: 0.00     Price: $0.00  
Total Hits: 12  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

This month's column is a follow-up to the December 2002 installment in which I introduced the basic concepts and programming techniques associated with delegates. I am going to assume you have already read that column and that you are familiar with the fundamentals of programming delegates. For example, you should know how to define a delegate type, how to create a delegate object that's bound to a handler method, and how to execute the handler method by calling the delegate object's Invoke met...


1  2  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net