|
-
Jan 31st, 2001, 03:24 PM
#1
Thread Starter
Junior Member
After dynamically creating a control during run time using VbControlExtender object, I can only access the events for the most recently created object in the ObjectEvent event.
Though it is probably impossible I am trying to find a way to code events for every control created dynamically.
-
Feb 1st, 2001, 10:56 AM
#2
Fanatic Member
THe only way I can think of this is to create 1 of each regardless (It's a bit like when you place a single text box on a form then in code you may create a new text box on the form.) then as a new one is created create a control array of that type, then the new one will inherit all events of the original.
-
Feb 1st, 2001, 11:08 AM
#3
Thread Starter
Junior Member
If I understand what you mean correctly, the difficulty is that vb will not allow me to create a control array at runtime, nor have I found a way to dynamically add to an existing control array.
If I am missing your point please let me know.
Thank you very much for your thoughts on the matter.
-
Feb 1st, 2001, 02:15 PM
#4
Thread Starter
Junior Member
problem solved
Forget about the VbControlExtender!
I forgot that you can dynamically instantiate
new controls that are already part of a control array
in design time.
Sub Whatever()
Load NewDamnControl(NewIndex)
End Sub
Geeze. it is so simple im sick!
-
Feb 8th, 2001, 04:29 AM
#5
Hyperactive Member
yep, groovy isn't it ;-!
td.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
-
Feb 8th, 2001, 09:24 AM
#6
Thread Starter
Junior Member
yeah when applied to activex controls you can do some add some pretty awsome flexibility.
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
|