Click to See Complete Forum and Search --> : Create a Control during run-time
masterbc23
Dec 7th, 1999, 03:08 PM
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?
chrisfricke
Dec 7th, 1999, 03:53 PM
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
fritzy1@fcmail.com
Cheers
Chris
PS Any advice on connecting to Access 2000 databases would be welcome!
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: azzmodan@azzmodan.demon.nl
ICQ: 15440110 (http://www.icq.com/15440110)
Homepage: http://www.azzmodan.demon.nl
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.