Software_developer
Software_developer

Reputation: 272

Can't insert animated smileys in richtextbox in my windows chat app in c#.net

Can't insert animated smileys in my chat app, which is a windows application in c#. I was pasting directly images of smileys in my richtextbox, everything worked fine as long as they were non animated, but now I require animated smileys is there any way available??? I searched and found about using web control instead of rich textbox, but if possible i want to do it using richtextbox... please help me if you know the solution..!!!

I am using this code to insert static(non animated) smileys,it would be great if it could be modified to allow animated smiles too..

PictureBox p = sender as PictureBox;
p.Size = new Size(20, 20);
p.SizeMode = PictureBoxSizeMode.StretchImage;
Clipboard.SetImage(p.Image);
t_msg.Paste();

Upvotes: 1

Views: 748

Answers (1)

Patrik
Patrik

Reputation: 1372

The System.Windows.Controls.RichTextBox is not capable of displaying animated GIFs. You will need to take a different Control.

There are plenty of third-party controls available on the web. A quick google resulted the TRichTextBox which seems to do the job.

Upvotes: 1

Related Questions