64 button, one by one to write, not want dead tired, how to use the loop to their assigned a color?
CodePudding user response:
Traverse a minute not to go, have Controls properties button in the form, is containing the control, according to type or name, when you traverse the tag attributes to judge whether the button you want, so treatment is okCodePudding user response:
Upstairs positive solution, traverse Controls with respect to okCodePudding user response:
These controls the textchanged event +=the same methodAccording to the sender as the button object to determine what color