I have a class with the follwing method in
- public static void myMethod(Home_Form formObject)
- {
- foreach (Control X in formObject.Controls)
- {
- var tb = X as TextBox;
- if (tb !=null)
- if (tb.Text == @"53")
- {
- tb.Text = @"Hammer";
- }
- }
- }
- private void bonus1TypeTextBox_TextChanged(object sender, EventArgs e)
- {
- Variables.myMethod(this);
- }
Can somebody please advice, hope I have made myself clear.
Jay


Jay StewartPosted May 23, 2017, 4:38 AM