Hashtable emotions; private void CreateEmotions() { emotions = new Hashtable(12); emotions.Add(@":)", Properties.Resources.ThumbsUp1); emotions.Add(@"0)", Properties.Resources.AngelSmile1); emotions.Add(@":(", Properties.Resources.CrySmile1); emotions.Add(@":X", Properties.Resources.AngrySmile1); emotions.Add(@"XX", Properties.Resources.DevilSmile); } private void AddEmotions(Hashtable emotions) { foreach (string emote in emotions.Keys) while (txtLoad.Text.Contains(emote)) { int ind = txtLoad.Text.IndexOf(emote); txtLoad.Select(ind, emote.Length); Clipboard.SetImage((Image)emotions[emote]); txtLoad.Paste(); } }
if (msgReceived.strMessage != null && msgReceived.cmdCommand !=Command.List) txtLoad.Text += msgReceived.strMessage + "\r\n";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)