I have just made a winform chat client in C#.
I was wondering if there is any way that i could insert smilies in the program.
Any help in this matter would be appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use an ImageList and put your Smilies Pictures in it
http://msdn.microsoft.com/en-en/library/system.windows.forms.imagelist.aspx
Then you can use a KeyDown Event on your Textbox to insert certain Smiley Images whenever a combination like “:-)” etc. is typed
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown.aspx
Hope I could help you