C
craig
I have am working on an app that has many forms. I would like to make each
of these forms capable of interacting with the Windows Clipboard. I did
some research and found out how to do this using the Windows API, which
involves overriding one of the Form methods.
Am I correct in thinking that the best way to add this additional
clipboard-related code to each form would be to subclass the Form class and
create a new ClipboardEnabledForm class? Because of the fact that I need to
do method overrides, I don't know of any other approach. I want to maximize
code reuse. Would there be any pitfalls to subclassing the Form class?
Thanks for any input!
of these forms capable of interacting with the Windows Clipboard. I did
some research and found out how to do this using the Windows API, which
involves overriding one of the Form methods.
Am I correct in thinking that the best way to add this additional
clipboard-related code to each form would be to subclass the Form class and
create a new ClipboardEnabledForm class? Because of the fact that I need to
do method overrides, I don't know of any other approach. I want to maximize
code reuse. Would there be any pitfalls to subclassing the Form class?
Thanks for any input!