i have string MyText that hold “L1”
i have label control that his name is “L1”
is there any way to read label L1 using MyText ?
something like: TMT = MyText.Text
or: TMT = ((Control)MyText.ToString()).Text;
thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Find a control with specified name:
or search within controls of specified type:
Edit:
if you have an array of control names you can find them:
(everything above requires .NET 3.5)
If you don have it, you can do next: