I am working on a Windows Form project that all things in it are dynamically created during run time.
So all controls are created during running application and also events are assigned to controls. Also I have to mention all controls are user defined controls.
All event functions are already written and during run time just I assign them to proper control event handler as usual:
sampleButton.Click += new System.EventHandler(vExitApplication);
My problem is I cant recognize the result of assigned function within control. Is there any method to understand what is that function result for example is there any exception or not?