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 > C-Sharp > Events & Delegates


Search:
What's New - What's Hot
Asynchronous Nature of Delegates  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: Amr Monjid      Rating:  
Read Reviews | Write Review |  Your Rating: 

Building a multithreaded application can be done in several ways includes:

Asynchronous delegates calls.
The BackgroundWorker component.
The Thread class....

Multicast delegates in winform control update  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: NitinSingh      Rating:  
Read Reviews | Write Review |  Your Rating: 

Just to showcase multiple features of delegates in a single function Smile | :) This can be used to have a concise feature set of delegates...

Delegates Explained in Plain English  Version: 0.00     Price: $0.00  
Total Hits: 16  |  Today: 0Author: Simon Pickersgill      Rating:  
Read Reviews | Write Review |  Your Rating: 

Delegates are fundamental to the .NET Framework (events and callbacks wouldn't work without them) and can be extremely powerful to the .NET Developer once they come to grasps with exactly what they are and how to use them. In this blog I will consider aspects of a real world situation in which delegates are useful, after which I will explain, in illustrative terms exactly what delegates are all about. You will see how delegates are an intrinsic part of the events structure in the .NET framework...

How do I Implement Custom Event Handling in C#  Version: 0.00     Price: $0.00  
Total Hits: 6  |  Today: 0Author: Ashish Singhal      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, we are going to show, how we can call custom event on our designed conditions....

Parameterized ThreadStart, EventWaitHandle, and More  Version: 0.00     Price: $0.00  
Total Hits: 13  |  Today: 0Author: Stephen Toub      Rating:  
Read Reviews | Write Review |  Your Rating: 

The ThreadPool.QueueUserWorkItem method lets me pass information to the delegate that will be executed on the worker thread. That's great, but I don't want to use a thread from the pool for this purpose as my scenario really requires a dedicated thread. Unfortunately, the ThreadStart delegate I use to start a new thread is parameterless. How do I pass data to a new thread?...

Tips & Tricks - Working with Event Handler  Version: 0.00     Price: $0.00  
Total Hits: 14  |  Today: 0Author: KunalChowdhury      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the above case, suppose two thread subscribed to the same OperationComplete handler and one unsubscribed the event. In such scenario the OperationComplete event will become null and for the next thread due to the event is null it will not execute. This happens mainly in multithreaded applications but you can't guarantee for single threaded application too....

Why Page Event’s not Work:  Version: 0.00     Price: $0.00  
Total Hits: 19  |  Today: 0Author: Imran Baloch      Rating:  
Read Reviews | Write Review |  Your Rating: 

The Page handler in HTTP Pipe Line is most use than any other Handler and there event’s are also play an important role for creating any application. Think yourself how annoying this is if some times these events are not raised. There fore we must know what are most circumstances that these page events are not work because they are events that build the web application most powerful....

Events Sample  Version: 0.00     Price: $0.00  
Total Hits: 12  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This sample shows how to declare, invoke, and configure events in C#. For more information, see Events (C# Programming Guide)....

PropertGrid Collection Events  Version: 0.00     Price: $0.00  
Total Hits: 17  |  Today: 0Author: Ali BaderEddin      Rating:  
Read Reviews | Write Review |  Your Rating: 

You are using the PropertyGrid control to allow the user to edit the properties of an object at run-time from the UI. This works great and is in fact very reliable since this is the same control used by Visual Studio to display the properties of controls. Now that you are letting the user update the object directly, you’d like to get a PropertyValueChanged event whenever the user changes a property, so you can respond to the user’s action. You’ll be able to do that by adding a PropertValueChange...

Anonymous methods as event handlers – Part 2  Version: 0.00     Price: $0.00  
Total Hits: 26  |  Today: 0Author: S. Senthil Kumar      Rating:  
Read Reviews | Write Review |  Your Rating: 

The previous post discussed having anonymous methods as event handlers and ended with a question – why doesn’t unsubscription work while subscription works out alright?

Vivek got the answer spot on – the way the C# compiler handles and translates anonymous methods is the reason....

Create Cross-platform Thread-Independent Event Loops  Version: 0.00     Price: $0.00  
Total Hits: 44  |  Today: 0Author: Alex_Intw      Rating:  
Read Reviews | Write Review |  Your Rating: 

Event-driven programming is a computer programming paradigm in which the flow of the program is determined by user actions (mouse clicks, key presses), other hardware events, or messages from other programs[1]. The alternative is batch programming, where the programmer writes a fixed control sequence determining the actions of the program. In the Microsoft Windows environment, event-driven programs contain an event loop that is registered with the operating system. The operating system passes me...

salient.Delegate - a non-DOM JavaScript Delegate Implementation     
Total Hits: 29  |  Today: 0Author: Sky Sanders      Rating:  
Read Reviews | Write Review |  Your Rating: 

salient.Delegate is a class that enables the implementation of numerous software design patterns that can accelerate design and development and improve the architecture of your JavaScript code by enabling reliable loose coupling of JavaScript code....

How to: Add an Event Handler Using Code     
Total Hits: 73  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This example shows how to add an event handler to an element by using code. If you want to add an event handler to a XAML element, and the markup page that contains the element has already been loaded, you must add the handler using code. Alternatively, if you are building up the element tree for an application entirely using code and not declaring any elements using XAML, you can call specific methods to add event handlers to the constructed element tree....

Programming with Events Using .NET     
Total Hits: 42  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

This month's Basic Instincts column builds upon my last two columns in which I talked about concepts and programming techniques associated with delegates. I will assume you have read the last two installments of this column and that you understand the role that delegates play within the Microsoft® .NET Framework. If you haven't read the last two columns, see Implementing Callback Notifications Using Delegates and Implementing Callbacks with a Multicast Delegate. You should also know how to desig...

Dot Net Remoting: Handling Remote Events using Delegates – a real world example of 'chat and file send' application     
Total Hits: 860  |  Today: 0Author: josekonoor.      Rating:  
Read Reviews | Write Review |  Your Rating: 

Dot Net Remoting is a simple programming model/framework which allows objects from different machines/processes/app-domains to communicate each other. It allows the flexibility of using different types of communication protocols (tcp, http etc..) and message formatters (binary, SOAP etc..). Communication among different app-domains is facilitated by Remoting objects. Remoting objects can be hosted using Managed Executables/IIS/.Net Component Services. It is also possible for .Net applications ru...

Understanding Delegates     
Total Hits: 148  |  Today: 0Author: Sridhar      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article we will deal with Delegates in C#. I tried my best to keep this article very simple so that people could understand the basics of delegates.

In simple words when you invoke something on Delegates it Delegates( means hand over) to some one. Delegates acts like a bridge between a person that is invoked and a person responding.

Perhaps you can recall from high-school days that sound travels with Particles. Sound emitted at Point A(Source) reaches Point B (Receiver) wit...

Delegates And Events - The Uncensored Story     
Total Hits: 163  |  Today: 0Author: Salman Ahmed      Rating:  
Read Reviews | Write Review |  Your Rating: 

All of us have been exposed to event driven programming of some sort or the other. C# adds on value to the often mentioned world of event driven programming by adding support through events and delegates. This article is a part of a series that aims at understanding fully the way in which delegates and events operate. Part1 helps you understand the role of multicast delegates in the context of UI interaction. The emphasis of this article would be to identify what exactly happens when you add an ...

Programming with delegates and events in .NET     
Total Hits: 253  |  Today: 0Author: Wim UYTTERSPROT      Rating:  
Read Reviews | Write Review |  Your Rating: 

Events notify client objects of an action; for example, the controls in a GUI are event-driven. Windows applications are event-driven. An event is often a change of state: a change in the mouse position, a change in the mouse button position, a change of the keyboard state as a key is pressed, etc. Event references are defined using the delegate type....

How Events Work Under the Surface     
Total Hits: 140  |  Today: 0Author: J. Dunlap.      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article aims to show you what goes on behind the "magic" that the compiler does when you declare a simple event member in a class. It is meant as a beginner article to answer a frequently-asked question, so please don't vote it down just because it is very basic. A pre-requisite to understanding how events work under the surface is to understand how multicast delegates work. A multicast delegate is a combined delegate that is made up of multiple single delegates joined together into a singl...

Conditional Invoking of Methods Using Delegates and Reflection     
Total Hits: 626  |  Today: 0Author: Alexander Turlov      Rating:  
Read Reviews | Write Review |  Your Rating: 

In many cases, developers have a demand to call methods testing some conditions before, like, if or switch statements. In most cases, developers call different methods on different conditions. And sometimes, developers need to call different methods either in loops or consequently. All cases mentioned above are covered by this article. Here, you can find several C# code examples that demonstrate how to solve such tasks in an efficient manner. Hope this article will be helpful....


1  2  3  4  5  6  7  8  9  10  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net