ice78991
Programmer
- Nov 20, 2006
- 216
I am using the following code to run the same event handler function
this.numericUpDown_SizeY.ValueChanged += new System.EventHandler(this.numericUpDown_Sizey_ValueChanged);
this.numericUpDown_SizeY.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_Sizey_ValueChanged);
private void numericUpDown_SizeY_ValueChanged(object sender, EventArgs e){
etc etc
Is it possible within numericUpDown_SizeY_ValueChanged to determine whether it has been called by the ValueChanged or the KeyUp handler. I need to know which.
this.numericUpDown_SizeY.ValueChanged += new System.EventHandler(this.numericUpDown_Sizey_ValueChanged);
this.numericUpDown_SizeY.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_Sizey_ValueChanged);
private void numericUpDown_SizeY_ValueChanged(object sender, EventArgs e){
etc etc
Is it possible within numericUpDown_SizeY_ValueChanged to determine whether it has been called by the ValueChanged or the KeyUp handler. I need to know which.