|
|
|
|
|
Total Hits: 34 | Today: 0
|
Author: Ayman M. El-Hattab
|
Rating:
|
|

Over the past few months I have been working on branding the SharePoint portal of one of the largest international companies. This was really interesting especially that this was the first branding experience for me. While I was looking at the OOB master page ( default.master ), I noticed there is a control called “delegate control” in the head element right below the “PlaceHolderAdditionalPageHead”. After googling and investigating, I can say that Delegate Control is one of the most important f...
|
|
|
|
Total Hits: 62 | Today: 0
|
Author: Ted Pattison
|
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 ...
|
|
|
|
Total Hits: 27 | Today: 0
|
Author: Jesse Liberty
|
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...
|
|
|
|
Total Hits: 49 | Today: 0
|
Author: Ted Pattison
|
Rating:
|
|

This month's Basic Instincts column builds upon my last three columns in which I introduced and explained the fundamental concepts and syntax associated with delegates and events. Last month I showed you how to design and write a simple class that defines and raises events. You also saw how to dynamically bind an event handler to an event using the AddHandler keyword. This month I am going to discuss static event binding, an alternative technique for registering an event handler....
|
|
|
|
Total Hits: 31 | Today: 0
|
Author: Jeffrey Richter
|
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...
|
|
|
|
Total Hits: 143 | Today: 0
|
Author: Paul Kimmel
|
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...
|
|
|
|
Total Hits: 241 | Today: 0
|
Author: John Spano
|
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....
|
|
|
|
Total Hits: 334 | Today: 0
|
Author: Paul Kimmel.
|
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...
|
|
|
|
Total Hits: 224 | Today: 0
|
Author: Arun Nair
|
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...
|
|
|
|
Total Hits: 31 | Today: 0
|
Author: Ken Getz
|
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?...
|
|
|
|
Total Hits: 135 | Today: 0
|
Author: Paul Kimmel
|
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....
|
|
|
|
Total Hits: 388 | Today: 0
|
Author: Ted Pattison
|
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...
|
|
|
|
Total Hits: 212 | Today: 0
|
Author: Jeffrey Richter
|
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...
|
|
|
|
Total Hits: 255 | Today: 0
|
Author: Brainstorming Guy
|
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...
|
|
|
|
Total Hits: 43 | Today: 0
|
Author: Ted Pattison
|
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...
|
|
|
|
Total Hits: 42 | Today: 0
|
Author: Richard Grimes
|
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 ...
|
|
|
|
Total Hits: 43 | Today: 0
|
Author: Arun Nair.
|
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!...
|
|
|
|
Total Hits: 174 | Today: 0
|
Author: Ted Pattison
|
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 meth...
|
|
|
|
Total Hits: 26 | Today: 0
|
Author: Jeffrey Richter
|
Rating:
|
|

Callback functions are certainly one of the most useful programming mechanisms ever created. The C runtime's qsort function takes a callback function to sort elements within an array. In Windows, callback functions are required for window procedures, hook procedures, asynchronous procedure calls, and more. In the Microsoft® .NET Framework, callback methods are used for a whole slew of things. You can register callback methods to get assembly load/unload notifications, unhandled exception notifi...
|
|
|
|
Total Hits: 10 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

An event is a message sent by an object to signal the occurrence of an action. The action could be caused by user interaction, such as a mouse click, or it could be triggered by some other program logic. The object that raises the event is called the event sender. The object that captures the event and responds to it is called the event receiver. In event communication, the event sender class does not know which object or method will receive (handle) the events it raises. What is needed is an in...
|
|
|
|
|
|