Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Convert string to checkbox

Avatar of captainamateur
captainamateur asked on
Visual Basic.NET
6 Comments1 Solution2236 ViewsLast Modified:
I am using VB from Visual Studio 2010.

I have a number of checkboxes on a form. The status of these checkboxes is saved into a text file, along with the name of the checkbox.

To display the data from this text file, my app goes through the file line by line, reading the name and status.

How do I convert the string containing the name of the checkbox into the control name, so I can do something with it?

For example, the name of the checkbox is read into a variable called strChkBxName.

I want to be able to use this statement or similar to tick or untick the checkbox-


...but this does not work. How do I use the data in the string?
Avatar of rafunk
rafunkFlag of Italy image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answers