When do I need/must to add a Usercontrol to Controls?

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

When do I need/must to add a Usercontrol to Controls?

Before I added the following, the NavigatorControl1 did not show when the
form was opened.
Me.EditEntries.Controls.Add(Me.NavigatorControl1)

I have another control that does not show itself but shows forms as needed.
This seems to be working OK without being in Controls

My question is what is Controls for and when should/must things be add to
it?

Just looking for some insight


Thanks
 
Just Me said:
Before I added the following, the NavigatorControl1 did not show when the
form was opened.
Me.EditEntries.Controls.Add(Me.NavigatorControl1)

I have another control that does not show itself but shows forms as
needed.
This seems to be working OK without being in Controls

My question is what is Controls for and when should/must things be add to
it?


You will have to add controls to the form's/container's 'Controls'
collection if they should be shown /on/ the form.
 
I take this to mean I have to add them ONLY if they are to be shown.

Thanks
 

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