Results 1 to 3 of 3

Thread: Create a Control during run-time

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 1999
    Location
    Silver Spring, MD USA
    Posts
    2

    Post

    Can someone help me to create a number of controls (user determins how many controls to create) during run time. A control array wouldnt work in this situation. Anyone have any ideas on how to create a control new control?

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Lincolnshire, UK
    Posts
    111

    Post

    Create one instance of the control on the form and give it an index of 0. Get the user to enter the number of controls that they want. To load a new control, do the following.

    Load ControlName(controlname.count)
    controlname(controlname.count-1).visible=true

    set controlnames left and top properties and this should do. Loop through this until the controlname.count property = the number of controls wanted

    Any problems, email me at

    [email protected]

    Cheers

    Chris

    PS Any advice on connecting to Access 2000 databases would be welcome!

  3. #3
    Guest

    Post

    Connecting to an Access2000 database, make sure you referenced the Microsoft DAO 3.6 Object Libary after that you can use it like normally use it.


    ------------------

    Vincent van den Braken
    EMail: [email protected]
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width