Adding Activated / Deactivate Event Handlers via IDE
Posted on 2004-03-26
I'm using VS.NET 2003 with C# as my programming language. When I create a form, I can add most event handlers for it by going to the "Properties" window and clicking the lightning bolt. However, certain key event handlers don't show up (including "Activated" and "Deactivate"). When I use the Class Viewer I see that the events do exist and I can override OnActivated and OnDeactivate, but I want to add an event handler for Activated / Deactivate, not override the OnActivated / OnDeactivate methods.
Do you know how to add Activated / Deactive event handlers via the IDE so that I won't have to bother hand-coding the declaration and the code to register the method as an event handler?