简体   繁体   中英

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();

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM