Controls count

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

How to get all the controls value in a form. i try to use like this below
code. but its says the controls count is 2. but have more than 15 controls in
my form.

For intIndex = 0 To Me.Controls.Count - 1

thanks
bala
 
If some of those are in a container control (panel, etc), then they will be
added to that container's controls collection, not the forms.

You can easily see what control is part of what contaier, by just expanding
the wizard generated code. At the end of initalizecomponent, there will be
code to add the controls to their containers.
 

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

Back
Top