Check for Loaded Controls

  • Thread starter Thread starter Barkingmadscot
  • Start date Start date
B

Barkingmadscot

I have a number of Controls i have created, but how do i check which
ones are loaded, to stop the same control being loaded twice for
example

I looked under a activeform, activecontrol and cant see anything

Any help would be great

Ta
 
Hi,

Why are you asking this, controls are created and then added to a form (or
another control).

What you add is a reference to a new instanced object of the control.

Mostly is the instancing done by the designer, you are never "Loading" a
control.

Cor
 
I am loading different custom controls on the same form to complete
different tasks
 
Hi,

What are you using for loading those controls, a lift truck?

Show us "some" code in a way that we can understand what you mean with
loading?

As I wrote you can add your controls to the controls of the form, the
controls is a collection, you can just loop through it as with every other
collection. Be aware that if you add controls to an other control (let say a
panel), then they are inside the controlcollection (controls) of that panel
(control).

Cor
 
Back
Top