This is a simple scenario but I can't figure why it happens and how to solve it:
There are 2 edit boxes in a form, with their Caption set as the original value, ie Edit1 and Edit2. Now, in the OnEnter event of Edit1 (chosen arbitrarily), this code is written
OK, now if we run this program, and first click on Edit2, so far so good. Now, if we click on Edit1, the message comes out, and if we press OK, the focus returns to Edit1. OK, notice that the text is being selected as the mouse moves...
How do prevent this? I don't want the select thing to occur, but instead want the cursor to remain still in the edit box.
My feeling is i have to trap for the mouse event. Any other ideas?