T
Tony
Hello!
Is it the normal procedure in C# and .NET framework to always use the actual
event object which is
passed as the second parameters to the event handler.
All of them are derived from the base class which is EventArgs so because of
this the second parameters could in all cases be EventArgs which had be be
cased
in the most cases to the the actual referenced event argument object before
accessing the referenced object.
Here I have some examples
private void textBoxAge_KeyPress(object sender, KeyPressEventArgs e)
private void textBoxAge_Validating(object sender, CancelEventArgs e)
private void textBox_TextChanged(object sender, EventArgs e)
//Tony
Is it the normal procedure in C# and .NET framework to always use the actual
event object which is
passed as the second parameters to the event handler.
All of them are derived from the base class which is EventArgs so because of
this the second parameters could in all cases be EventArgs which had be be
cased
in the most cases to the the actual referenced event argument object before
accessing the referenced object.
Here I have some examples
private void textBoxAge_KeyPress(object sender, KeyPressEventArgs e)
private void textBoxAge_Validating(object sender, CancelEventArgs e)
private void textBox_TextChanged(object sender, EventArgs e)
//Tony