Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,084 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,523 people online right now. Registration is fast and FREE... Join Now!




Problem whit WebBrowser

 
Reply to this topicStart new topic

Problem whit WebBrowser

kingmighty_spades
8 Apr, 2008 - 03:10 AM
Post #1

New D.I.C Head
*

Joined: 8 Feb, 2008
Posts: 20


My Contributions
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 wink2.gif



User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 07:57PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month