Global Properties and Forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to define some public properties which will
be 'Let' from different forms - I need to know, and use,
the form from which the property was set in a routine
called in the 'Let' Property. i.e I want to be able to
use statements which are equivalent to "Me.cmdTest.enabled
= True" etc. "Me", of course, doesn't work in a public
properties. Any brilliant suggestions? Many thanks.
Michael
 
Michael,

Your question is a bit confusing to me can you write some pseudo code and
perhaps I can help.

Dan
 
If you called it from the active form, Screen.ActiveForm
returns a reference to the current form.

Otherwise, you will have to pass the name of the form to
the public property.

Chris Nebinger
 
Back
Top