Click here to Skip to main content
16,022,737 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
hi, i want to place emoticon on my listbox, but it don't generate colored emoticon, this is example emoticon "😠", i want to show it as colored emoticon just as i show on facebook, how to do it?
thanks

What I have tried:

i tried to place plain emoticon on my listbox or textbox
Posted
Updated 7-Aug-16 9:42am

1 solution

These controls do not support arbitrary hosting of graphics. But, you can create compound controls (UserControls) that present these controls along with your graphic objects.

The ListView can host icons :[^].

A TextBox cannot include graphic elements, but a RichTextBox can. You could use a Font that has graphic icons to display in a TextBox, however. Do a search on the "Segoe UI Emoji font," but keep in mind that a TextBox only displays one font, one font-style, and one font-size at a time. Scot Hanselman writes about using the Segoe UI Emoji font here: [^]

You can use a PictureBox to display a graphic and position it near your other controls, but, I suggest you make a UserControl in which you combine pictureboxes containing graphics with other controls if you want this to present a consistent visual experience.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900