The code I gave you for the Regular Expression was for C#. Here is the VB.NET equivalent. You should need to use all the parameters to get the expression as you want it.
cevent.Value = Regex.Replace(CStr(cevent.Value), "(\d{3})(\d{2})(\d{4})", "$1-$2-$3")
>Cathi:
>
>Before we go more further, the value was already sent to the regex.replace command before I add to the control? Maybe the Regex.replace command have problem and is sending a null value. Remember that I am sending a space(1) when I initialize the row. Also I dont know if I told you but my regex.replace command reject the (string), I have to formated with only three parameter instead of four like your example. Let me know if this is the problem.
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi