|
-
Sep 3rd, 2002, 05:52 AM
#1
Thread Starter
Lively Member
How to access properties of a button created at runtime
I need to be able to access the forecolor of some buttons at runtime.
I know how to get the Addhandler to make use of the buttons but i can't find a way to access these buttons properties from another event when they have been created at runtime.
Anyone have any idea of how this is done?
-
Sep 4th, 2002, 07:17 AM
#2
Addicted Member
Place the Button Object you create in a Module
This allows all forms, modules, classes, ... access the Button Object
-
Sep 5th, 2002, 06:51 PM
#3
Thread Starter
Lively Member
Thanks Nigh, I had tried that already but after reading your reply i gave it another try and sort of got it to work but it only sets the forecolor of the buttons to the last button in the list, all the others stay the default forecolor.
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
|