This is an example on how to implement a rubber band effect in Windows forms.
Raspberry Pi -Sensorial Symphony of Connectivity