This is an example on how to implement a rubber band effect in Windows forms.
GitHub Copilot - Coding with Copilot