Refering to a Control by Name In Code

D

D Miller

This might be a pretty basic question... How do I refer to a control by
name as a variable?

For instance I have 90 controls is a row named C1 though C90 and I want to
have focus shifted from say C11 to C20 by code. The target name would have
to be a variable.
 
G

Guest

D said:
This might be a pretty basic question... How do I refer to a control by
name as a variable?

For instance I have 90 controls is a row named C1 though C90 and I want to
have focus shifted from say C11 to C20 by code. The target name would have
to be a variable.

Do a google search on "vb.net Get control by name" and you will get many
examples of this.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top