Length of red line = ( (1/CosD(angle)) - 1) * r
Length of red line = ( (1/SinD(angle)) - 1) * r
If you replace in the Sub pnlDraw_Touch routine
'If X >= CenterX - Radius AND X <= CenterX + Radius Then
'by
If X >= CenterX - Radius AND X <= CenterX Then
'You have the left side.