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?
Printable View
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?
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!
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