R
richard.martino
I have a huge Windows desktop application with over 100 individual
controls, like TextBox, NumericUpDown, ComboBox, etc.
I want each one to have its ValueChanged (or TextChanged) event
handler set, like:
-----------
System.Windows.Forms.TextBox cityTextBox;
cityTextBox = new TextBox();
cityTextBox.TextChanged += new EventHandler(cityTextBox_TextChanged);
-----------
I can loop through all of the controls of the application starting
with this.Controls and, recursively their children, finding everyone
of my 100 individual controls.
I want my software to verify if I have every TextChanged or
ValueChanged event handler set.
Any clues?
Thanks
controls, like TextBox, NumericUpDown, ComboBox, etc.
I want each one to have its ValueChanged (or TextChanged) event
handler set, like:
-----------
System.Windows.Forms.TextBox cityTextBox;
cityTextBox = new TextBox();
cityTextBox.TextChanged += new EventHandler(cityTextBox_TextChanged);
-----------
I can loop through all of the controls of the application starting
with this.Controls and, recursively their children, finding everyone
of my 100 individual controls.
I want my software to verify if I have every TextChanged or
ValueChanged event handler set.
Any clues?
Thanks