Check for Loaded Controls

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Barkingmadscot

    #1

    Check for Loaded Controls

    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
  • Cor Ligthert [MVP]

    #2
    Re: Check for Loaded Controls

    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


    Comment

    • Barkingmadscot

      #3
      Re: Check for Loaded Controls

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

      Comment

      • Cor Ligthert[MVP]

        #4
        Re: Check for Loaded Controls

        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 controlcollecti on (controls) of that panel
        (control).

        Cor

        Comment

        Working...