Forms and Controls as Classes

  • Thread starter Thread starter Mike Thomas
  • Start date Start date
M

Mike Thomas

Is there a way in Access to create a form or control, save that object as a
class, then create new forms or controls which inherit from that class?

Say you want all your forms in the future to have a blue background. You
save a form with a blue background as a class, then base all of your new
forms on that class. Later, if you want your forms to be orange, you change
the property on the parent form/class, and all of the childeren of the class
turn orange.

Many thanks
Mike Thomas
 
In the sense you describe, I'm fairly confident the answer
is "no."

There are workarounds for your needs. For example, build
a class that describes the features you want (they may
even read the values from the registry or a base table).
Then every form you use instantiates that class (which
then makes appropriate changes to the form), and possibly
even use it as an event sink handler for common event
management.

Are you a FoxPro programmer?

David Atkins, MCP
 
Back
Top