Hi John,
Do you mean you want to list the order in which the events fire? It's a pain to set up, unless there's a way to do it that I don't know about ... but what I've done in the past is to put code to do Debug.WriteLine() in all the event methods in a base class. That doesn't explain it very well, so here's an example of what I mean:
public class MyForm : System.Windows.Forms.Form
{
protected override void OnActivated(EventArgs e)
{
System.Diagnostics.Debug.WriteLine("Form Activated");
base.OnActivated(e);
}
protected override void OnLoad(EventArgs e)
{
System.Diagnostics.Debug.WriteLine("Form Load");
base.OnLoad(e);
}
protected override void OnClosing(CancelEventArgs e)
{
System.Diagnostics.Debug.WriteLine("Form Closing");
base.OnClosing(e);
}
}
~~Bonnie
>Hi,
>Anyway to list all the events fired (whether handled or not) in .NET, just like how we trap events in VFP?
>
>Thank you