string one = "find";
combobox1.text = "one";
I want to use “one” i.e string value of (combobox1.text) as an existing variable string one.
Is this possible?
All you still didn’t getting my question. I want to use value of combobox1.text that is one and one that is variable string and it value is find. so i want to use variable one‘s value indirectly.
You cannot do it for local variables like this. For member fields you can use reflection; for locals, the simplest approach is to use
Dictionary, for example, like this: