Originally posted by MartinLiss
...I just wrote it ... and haven't spent a lot of time testing it... If you find any bugs ... please let me know.
I found a bug, but it should be simple to work around.

I downloaded the OCX and tried it out. The code seems pretty much OK for English locales ONLY. The decimal point is a comma in most European countries. Anyway, that is not a bug per se ... it is more like a lack of internationalization. The real bug is here:

1) In the number box, type "-153.45"
2) Press <Shift>+<Home>
3) Press <Shift>+<Delete>
4) Press <Shift>+<Insert>
5) Repeat step 4

After these 5 steps, your box will contain "-153.45-153.45".

You need to handle the <Insert> key either by disabling it, but will it then be possible to cause this error using the context menu? I think it would be better to move some of your code from the KeyPress event to the Change event.

Just a suggestion.