K
kenny.deneef
Hey all
We are working on a project and have alot of forms with textboxes on.
Now we want to put some input validation keypress events on those
textboxes. We got a parent class where we putted some event into ex.
public void AlfaKeyPress(object sender, KeyPressEventArgs e)
{
// still have to put something into this
e.Handled = false;
}
But it seems inpossible to link to this event from a child class
without writing for all textboxes the eventhandlers. We thought, just
select all textboxes, go to the event tab en select the proper event,
but guess again it didn't work. The event was no where to be found. We
tried public, internal, internal protected and protected but zero
results.
Someone got an idee how to do this without adding it all by hand of by
adding all the event to each form.
Thanks in advanced
We are working on a project and have alot of forms with textboxes on.
Now we want to put some input validation keypress events on those
textboxes. We got a parent class where we putted some event into ex.
public void AlfaKeyPress(object sender, KeyPressEventArgs e)
{
// still have to put something into this
e.Handled = false;
}
But it seems inpossible to link to this event from a child class
without writing for all textboxes the eventhandlers. We thought, just
select all textboxes, go to the event tab en select the proper event,
but guess again it didn't work. The event was no where to be found. We
tried public, internal, internal protected and protected but zero
results.
Someone got an idee how to do this without adding it all by hand of by
adding all the event to each form.
Thanks in advanced