Is the .cs file in the same project as the rest of your code?
Is it in the same namespace?
>Craig
>
>Thanks for the input!! I put it in a separate class file, but it doesn't show up in intelisense, do you know how I would call it from another section of code? Thanks I know that's really a newby question, but I'm trying to figure out this C#.
>
>Thanks
>Kirk
>
>
>using System;
>using System.Collections.Generic;
>using System.Text.RegularExpressions;
>using System.Text;
>
>namespace SocketServer
>{
> public class myFunctions
> {
> private string ReformatPhone(string phone)
> {
> Match m = Regex.Match(phone, @"^\(?(\d{3})\)?[\s\-]?(\d{3})\-?(\d{4})$");
> return String.Format("{0}-{1}-{2}", m.Groups[1], m.Groups[2], m.Groups[3]);
> }
> }
>}
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer