Hi,
I have used webbrowser for smilies in my program ,this code sends the smilies perfectly using browser . But now I want to change so that if someone sends 5 smilies at once only the 4 first will show as smilies and the rest as code for ex:) = : )
This is the code Im currently using:
CODE
public string ApplySmilies(string sourceText)
{
string PathSmily = Application.get_StartupPath() + @"\image\Smiley\";
string Line = sourceText
return Line.Replace(":((".ToLower(), string.Concat(new object[] { "<img src = ", '"', PathSmily, "20.gif", '"', ">" }))
}
Would Appreciate any help ty in advance ill be waiting for answer