|
-
Dec 7th, 1999, 04:08 PM
#1
Thread Starter
New Member
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?
-
Dec 7th, 1999, 04:53 PM
#2
Lively Member
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!
-
Dec 7th, 1999, 05:42 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|