Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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 :)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #control
ADD COMMENT
Topic
Name
2+7 =