Any special code in KeyPress method in grid, textbox, form?
>I have a form that looks like a grid. Don't ask me why, the original developer did it that way.
>
>It has five columns and 14 rows of textboxs. They are all based on the same class.
>
>TextBox --> ctxtSmall --> ctxtEntry <-- Used on the form.
>
>
>Now the interesting part.
>
>When entering in numbers in the first 13 rows the data goes in the right order: e.g. 123,456,789
>
>When entering in the numbers in the last row the data goes like this as you enter each keystroke:
>
>Enter cell - entire cell is selected
>Enter "1" - shows 1 left side of textbox
>Enter "2" - shows 2 left side, 1 right side
>Enter "3" - shows 3 left side, 21 right side
>Enter "4" - shows 4 left side, 321 right side
>Enter "5" - shows 5 left side, 4321 right side
>Enter "6" - shows 6 left side, 54321 right side
>Enter "7" - shows 7 left side, 654321 right side
>Enter "8" - shows 8 left side, 7654321 right side
>Enter "9" - shows 9 left side, 87654321 right side
>Leave Cell
>
>Cell's value is now 987,654,321 instead of what was entered as 123,456,789
>
>
>Does anyone have any ideas what could be going on? (VFP9 SP1, WIN XP SP2)
If it's not broken, fix it until it is.
My Blog