79421038

Date: 2025-02-07 13:30:58
Score: 1.5
Natty:
Report link

You'll need to either keep a reference to the variable created or perform operations on the Controls container it's in to find it later. In my own application I have a custom control, and I keep a dictionary<string, MyCustomControl> that I add the generated controls to for easier access.

See the answers here for information on using either this.Controls.Find() or this.Controls[name] to find the control if needed.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Justin - LGS