CodePudding user response:
And also can be used in the code attributeCodePudding user response:
Private void button1_Click (object sender, EventArgs e)
{
Var list=this. Controls. The Find (" for ", true);
If (list. Any ())
{
MessageBox. Show (the list [0]. Text);
}
}
This?
You can also use a reflection
CodePudding user response:
Said is to find the control word can be upstairs, said the space is to modify the name of the word have to under the code inside to find the corresponding attribute assignmentCodePudding user response:
Thank you, ladies and gentlemen, I have found theCodePudding user response: