You don't have to write any code for this.
The Operating System is taking care of automatically.
Just press the delete key while in any TextBox, and the character after the insersion point will get deleted. It's that simple.
So, the code is this:
(no code necessary)