Home > Net >  The small white winform for help.
The small white winform for help.

Time:05-09

I civil dog, paper needs, development window procedure, your bosses, how through the attribute string modify this field...

CodePudding user response:

This. The textBox1. Text=a1;

CodePudding user response:

reference 1st floor weixin_41240465 response:
enclosing textBox1. Text=a1;
Type t=textBox1. GetType ();
T.G etField (" textBox1 "). The SetValue (Visible, false);
Want to implement this method... But has not been successful

CodePudding user response:

Use control tag attribute name, and then compare all controls the tag and string comparison, you can find this control,
Not reflect or don't know way,

CodePudding user response:

reference glb21 reply: 3/f
with control tag attribute name, and then compare all controls the tag and string comparison, you can find this control,
Not reflect or don't know way,
foreach (Control in this c. GroupBox11. Controls)
{
If (ame=="textBox33")
{
C.E nabled=false;
}
}
Solved by traversal of the container control Name attribute to find the corresponding control, your answer gave me great help, thank you!
  •  Tags:  
  • C#
  • Related