MajP
You've got your good things, and you've got mine.
- Local time
- Today, 11:56
- Joined
- May 21, 2018
- Messages
- 8,554
DocMan,
I believe you are confusing Composition with Inheritance. I have demonstrated on this site multiple examples of composition. Composition is a class with class variables that are themselves objects. So you can build a class that takes a control as a property of the class. Using withevents you can capture the events of the control within the class. You can look at my find as you type examples which encapsulates all functionality in the class, but you can turn any combo, listbox into an FAYT with a single line of code.
I believe you are confusing Composition with Inheritance. I have demonstrated on this site multiple examples of composition. Composition is a class with class variables that are themselves objects. So you can build a class that takes a control as a property of the class. Using withevents you can capture the events of the control within the class. You can look at my find as you type examples which encapsulates all functionality in the class, but you can turn any combo, listbox into an FAYT with a single line of code.