Can you format the date into the MaskedTextBox control?
I used to use that in VB6 a lot, but haven't used it in .Net yet.
Something like maskedtextbox.text = format(myDate, "mm/dd/yy")
This must match the mask you have defined, and it forces
the incoming data into the same format. Does that help?
Robin S.
--------------
"path" <pa**@msn.comwrote in message
news:ON**************@TK2MSFTNGP05.phx.gbl...
Hello all
I'm programming in a Windows form (VB 2005).
I use the MaskedTextBox control. I use the slash "/" as separator date.
When I retrieve data from a database in another workstation the separator
changes by depending the separator OS by defualt "-" or "."
How can I use the MaskedTextBox control always with "/"... or there is
anoter solution?
Thanks in advanced.
henpat