Stories recently tagged with 'Events'

nvents - .NET events across the network(nvents.org)

submitted by LordLord(3737) 1 year, 7 months ago

Open source library for strongly typed publishing/subscribing of events. Events.Subscribe<FooEvent>(e => ..), Events.Publish(new FooEvent()). read more...

add a comment |category: |Views: 18

tags: another

Employment of Events is changing...(ajdotnet.wordpress.com)

submitted by ajdotnetajdotnet(2940) 1 year, 10 months ago

Until recently I used to see events mainly from the event consumer side. Recently however this has been changing, as Silverlight, asynchrounous, and parallel processing introduced new features, demands, and patterns. read more...

add a comment |category: |Views: 4

tags: another

ASP.NET: Attach an OnChanged Event to your own User Controls(teebot.be)

submitted by teebotteebot(65) 2 years, 9 months ago

How do you make a custom control post back to the server each time a user interacts with it? (a la OnSelectedChange in a DropDownList). Although this sounds trivial at first I haven't found lots of resources mentionning this. read more...

add a comment |category: |Views: 13

tags: another

WPF & Windows 7 Screencast (blogs.southworks.net)

submitted by ejadibejadib(185) 2 years, 9 months ago

WPF & Windows 7 Screencast Published by ejadib on August 10, 2009 11:01 am under Client Development, Events, Screencasts, WPF, Windows 7, Windows Presentation Foundation Edit Last week, we recorded with Matias Woloski an screencast for the Windows 7×7 campaign (Alberto Ortega blogged about the campaign), showing how to take advantage of some of the new features of Windows 7 in a Windows Presentation Foundation application. During the screencast we showed how the user experience can be enhanced by using the new capabilities of the Windows 7 Taskbar. Thanks to Damian Schenkelman who helped us with the application. read more...

add a comment |category: |Views: 37

tags: another

Detect Browser refresh to avoid events getting fired again in ASP .NET(csharpdotnetfreak.blogspot.com)

submitted by amit.jainamit.jain(1186) 3 years, 5 months ago

If you have created a aspx page using C# and ASP.NET and have put a button on it , and in the Click event of this button if you are inserting some data in database , after click if user refresh the page than click event gets fired again resulting data insertion to database again, to stop events on the page getting fired on browser refresh we need to write bit of code to avoid it In this example i've put a Label and a Button on the page, on click the label Text becomes Hello and when i refresh the page label's text again becomes Hello read more...

add a comment |category: |Views: 429

tags: another

Passing references to events (almost)(blog.functionalfun.net)

submitted by samuel_d_jacksamuel_d_jack(415) 3 years, 6 months ago

Have you ever needed to pass a reference to an event into another object? Think you can't do it in C#? This article shows how you can - some times! read more...

add a comment |category: |Views: 11

tags: another

Some tips on writing event handling code in C# .NET(rabdullin.com)

submitted by abdullinabdullin(385) 3 years, 8 months ago

You can drop a lot of repetitive code in C# event declaration and raising (including some EventArgs declarations, defining custom delegates, checking for nulls) if you follow these tips. read more...

add a comment |category: |Views: 58

tags: another

unit testing your events(dotnettoad.com)

submitted by PaklPakl(120) 4 years ago

In this article I will show you how you can unit test your events. I will show you a simple technique that will enable you to test if your events fire exactly as often as you want them to and I will provide you with two implementations. One implementation works well with the .NET Framework 2.0 and the second one uses .NET 3.0 (anonymous methods) in order to minimize the code necessary. read more...

add a comment |category: |Views: 160

tags: another

Dynamically adding controls to ASPX pages (web forms) and assigning ev(dotnetzone.gr)

submitted by sotirisfsotirisf(315) 4 years, 6 months ago

Although I've seen a lot of articles describing how to dynamically add controls to a Web Form, few mention even a little hint to how you can make event handlers actually WORK with dynamically-added controls. This article may seem (and probably is) a beginner-level one, but I think it's essential to cover this issue. read more...

add a comment |category: |Views: 33

tags: another

Unit test pattern for event raising(nervoustych.com)

submitted by jstangroomejstangroome(665) 4 years, 11 months ago

Use of C# anonymous delegates to easily test for an event firing. read more...

add a comment |category: |Views: 147

tags: another

Solving the Problem with Events: Weak Event Handlers(diditwith.net)

submitted by cls2degcls2deg(1535) 5 years, 2 months ago

One of the greatest frustration of working with delegates and events is that they can potentially cause memory leaks if they aren't unhooked. In this article, we will solve this problem in a variety of ways to get the best performance, memory use and syntax. read more...

2 comments |category: |Views: 480

tags: another

Catch-up Events(vaultofthoughts.net)

submitted by mikeonmikeon(5200) 5 years, 2 months ago

Catch-up Events in ASP.NET - an example of how you can see how it all works. read more...

add a comment |category: |Views: 31

tags: another

Catch-up Events(vaultofthoughts.net)

submitted by mikeonmikeon(5200) 5 years, 2 months ago

Catch-up Events in ASP.NET - an example of how you can see how it all works. read more...

add a comment |category: |Views: 31

tags: another

Upcoming Northeast (USA) Developer Events(blogs.msdn.com)

submitted by ChrisBowenChrisBowen(240) 5 years, 4 months ago

Here's a listing of many of the upcoming events in the New England and upstate NY regions potentially of interest to .NET developers. read more...

add a comment |category: |Views: 1

tags: another

Video: Creating Custom Events and Delegates with C#(weblogs.asp.net)

submitted by dwahlindwahlin(1450) 5 years, 4 months ago

It's no secret that events and delegates play a crucial role in the .NET framework. Without them it would be hard to handle user input or notify other objects when an action occurs. In this video Dan Wahlin outlines the fundamentals of creating a custom class that exposes an event and a delegate. The video also demonstrates how to create a custom EventArgs class and how events can be consumed using C#. read more...

add a comment |category: |Views: 547

tags: another

C# Delegates and Events (en.csharp-online.net)

submitted by HyleHyle(2755) 5 years, 5 months ago

Learn to use C# delegates and events. Excerpt: n programming, you are often faced with situations where you need to execute a particular action, but you don’t know in advance which method, or even which object, you’ll want to call upon to execute it. For example, a button might know that it must notify some object when it is pushed, but it might not know which object or objects need to be notified. Instead of wiring the button to a particular object, you will connect the button to a delegate and then resolve that delegate to a particular method when the program executes. In the early, dark, and primitive days of computing, a program would begin execution and then proceed through its steps until it completed. If the user was involved, the interaction was strictly controlled and limited to filling in fields. Today’s GUI programming model requires a different approach, known as event driven programming. A modern program presents the user interface and waits for the user to take an action. The user might take many different actions, such as choosing among menu selections, pushing buttons, updating text fields, clicking icons, and so forth. Each action causes an event to be raised. Other events can be raised without direct user action, such as events that correspond to timer ticks of the internal clock, email being received, file-copy operations completing, etc. An event is the encapsulation of the idea that "something happened" to which the program must respond. Events and delegates are tightly coupled concepts because flexible event handling requires that the response to the event be dispatched to the appropriate event handler. An event handler is typically implemented in C# via a delegate. Delegates are also used as callbacks so that one class can say to another "do this work and when you’re done, let me know." read more...

add a comment |category: |Views: 24

tags: another