Results 1 to 3 of 3

Thread: How to access properties of a button created at runtime

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    65

    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?

  2. #2
    Addicted Member Nigh™a®e's Avatar
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    175
    Place the Button Object you create in a Module

    This allows all forms, modules, classes, ... access the Button Object

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    65
    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
  •  



Click Here to Expand Forum to Full Width