Hello, I just need some quick help here:
Code:this.Controls[string.Format("S" + S)].Show();None of these works. I have controls called S0-S10(LineShapes). The S variable is currently 0. I get a NullReferenceException error during runtime.Code:this.Controls[string.Format("S" + S)].Visible = true;
Note: tried it with a button aswell.
Edit: It's for a hangman game, S0-S10 are lines and a sphere.
Thanks, I hope it's just something easy.