Bonnie, I would very much like to have a look at your bbmaskedtextbox class, although I suspect that my problem is vb and not C# (yeah ok, go ahead with your C# triumphalist rethoric :) ).
Basically what I need is a vfp texbox .... :) that does not beep when you press _enter_ (that's what that offending code does), and that considers _enter_ as an end-of-field key. I got it to work pretty well until I experienced the strange behaviour I have described to Viv, and that I have found other people have had too, although differently. There is a solution to have the maskedtextbox "have" a textbox and bind the latter. If needed that is what I will be implementing, unless of course your code shows me a better solution.
Thank you so much for you help.
Kind regards,
Marc.
>Marc, if you're interested I can send you two classes that might help. I don't know what your entire code is for implementing this MaskedTextBox, so what I have might not be similar to how you implemented yours (in which case, it probably won't help, unless you use mine instead).
>
>I can't really post the code, it's quite long ... even if I strip out some of the stuff that's particular to my Framework and not necessary to the functionality. Basically there are two classes a BBTextBox sub-classed from TextBox and a BBMaskedTextBox, sub-classsed from BBTextBox. It's old code, and I haven't used it in awhile, but AFAIK it still works. Also, it's in C# so you'd have to convert to VB.
>
>So, if you're interested I'll email it to you ... just let me know.
>
>~~Bonnie
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.