Events in Class Library...!
-
--> i want to send form-events from the form to a class library... which i want to handle them in the class library... but i cannot find any way to do this... e.g: keypress event of a textbox..... --> How can i handle events in a class library..?
J A Nasir K
modified on Saturday, February 21, 2009 8:38 AM
-
--> i want to send form-events from the form to a class library... which i want to handle them in the class library... but i cannot find any way to do this... e.g: keypress event of a textbox..... --> How can i handle events in a class library..?
J A Nasir K
modified on Saturday, February 21, 2009 8:38 AM
You should have event handlers defined in your class library. You register those event handlers with the Form events. When the event is fired(from the Form), all event handlers registered will be invoked. Since your class library had registered, its event handler will also be invoked.