Delegates and Events

Bubble Web User Control Event to Parent Web Page

Bubble Web User Control Event to Parent Web Page ///////////////////////////... //User Control ///////////////////////////... public partial class UserControls_ListRequests : System.Web.UI.UserControl { // Delegate declaration public delegate void GridSelectHandler(int requestId); // Event declaration public event GridSelectHandler GridSelectEvent; protected void gvRequests_SelectedIndexCha... sender, EventArgs e) {...

From C#, P/Invoke C++ with callbacks to C#

Mission: From C#, P/Invoke C++ with callbacks to C# //-------------------------... // inside unmanaged C# code //-------------------------... //-------------------------... //delegates - define a signatures for unmanaged c++ code to call //-------------------------... public delegate void MessageReceivedDelegate( int param1, string...

Delegates and Events in C# / .NET

original article: http://www.akadia.com/servi... Delegates and Events in C# / .NET More Information on installing the .Net Framework click here.Download examples from this Article. Content Overview Delegates Call a Function directly - No DelegateThe very basic DelegateCalling Static FunctionsCalling Member FunctionsMulticasting Events ConventionsSimple EventThe Second Change Event Example Conclusion Overview All of us have been exposed to event driven programming...