Problem : I am trying to subscribe to ALL events exposed by a WPF GridView-like 3rd party component in order […]
Tag: events
Naming methods that are registered to events
Problem : Assume that I have a class that exposes the following event: public event EventHandler Closing How should methods […]
Advantages of .NET Rx over classic events?
Problem : .NET 4.0 beta 2 has introduced the IObservable and IObserver interfaces. What are the advantages compared to classic […]
How to receive event when network is connected and also when user logs in
Problem : I have a service that runs and I’d like to receive notification when: a) the network is connected. […]
Where to “destroy” Handlers in VB.NET classes?
Problem : I have some class (a user control) MyUserControl that rises events. I use it in a form MyForm, […]
Why do event handlers always have a return type of void?
Problem : Hey, I wondered why is it that the return type of events such as private void button1_Click(object sender, […]
How to “Unset” Event
Problem : If I have a combobox click event set in the designer.cs page and then at some point during […]
Explicit Event add/remove, misunderstood?
Problem : I’ve been looking into memory management a lot recently and have been looking at how events are managed, […]
EventInfo.GetRaiseMethod() always null
Problem : I have: event EventHandler MyEvent; MyEvent += new EventHandler(someHandler); if(this.GetEvent(“MyEvent”).GetRaiseMethod() == null) { // Always true… } But […]
Event raising and Read introduction in .net 4.5
Problem : I have the question related to this MSDN Magazine article. Read Introduction As I just explained, the compiler […]