I know how to add controls at runtime.
Is it possible to add control events for those controls at runtime.
For example,
I'll add a series of controls from an array (called "BookmarkArray") at runtime which I can't be sure what the name will be (
).
I would like to add (or reference), say, a "Key_Down" event which would reference some other generic code which would know what to do when a key is pressed in that specific control.
Any thoughts???
********************
What's the best way to get the answers you need?? See FAQ222-2244 for details!
Is it possible to add control events for those controls at runtime.
For example,
I'll add a series of controls from an array (called "BookmarkArray") at runtime which I can't be sure what the name will be (
Code:
objLabel.Caption = Right(BookmarkArray(x), Len(BookmarkArray(x)) - 3)
I would like to add (or reference), say, a "Key_Down" event which would reference some other generic code which would know what to do when a key is pressed in that specific control.
Any thoughts???
********************
What's the best way to get the answers you need?? See FAQ222-2244 for details!