Gerry Schmitz wrote:
You attached the key handler to the button. You should (probably) attach it at the form level
The potential advantage I see in choosing to make the Button move facility self-contained is that you can easily define the sub-classed Button as a custom component ... a separate project ... then you can re-use it, mount it in the ToolBox in VS, etc.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot