Not sure what is the best way to word this, but I am wondering if a dynamic variable name access can be done in C# (3.5).
Here is the code I am currently looking to
Yes, you can use
Control c = this.Controls.Find("chkCategory" + i.ToString(), true).Single(); (c as textBox).Text = ...;
Add some errorchecking and wrap it in a nice (extension) method.
Edit: It returns Control[] so either a [0] or a .Single() are needed at the end. Added.
Control[]
[0]
.Single()