Answers for "c# string to control name"

C#
0

c# string to control name

// I want to convert a string into a control name (c#, .net)
this.Controls.Find("variableName", true)[0] 
// Change the variableName with the name of your string.
// Source: https://stackoverflow.com/questions/12055648/converting-string-to-a-control-name-in-c-sharp
// If this helped you, please leave a like :)
Posted by: Guest on March-27-2021

C# Answers by Framework

Browse Popular Code Answers by Language