To associate the event with your event handler, add an instance of the delegate to the event.
txtReportHeader.Validating += new CancelEventHandler(MyValidating);
private void MyValidating(object sender, CancelEventArgs e){
// some validation
}
Blog personal
Niciun comentariu:
Trimiteți un comentariu