how to determine the location cursor inside a textbox?