S
schlebe-home
Guest
Morning,
I will display an emoticon/smiley using Unicode 0x1F600 in a Form of a Window Form Application.
I have following code that display an smiley.
On this page, the smiley is correctly displayed in ORANGE but on my Form the orange color has disappeared !
Since smiley is correctly displayed on browser, I have decided to try to put Unicode character in WebBrowser control.
But the effect is the same !
What Can I do to display a smiley WITH COLOR in WinForm application ?
Thanks for any help.
Public Class Form
Private Sub Form_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'lblCharacter.Text = ChrW(&H2665)
'lblCharacter.Text = Convert.ToChar(&H1F610) & ChrW(&HFE0E)
'lblCharacter.Text = ""
'lblCharacter.Text = "♥"
lblCharacter.Text = Char.ConvertFromUtf32(&H1F600)
#If COMMENT Then
wb.DocumentText = ""
wb.Document.OpenNew(True)
wb.Document.Write(Char.ConvertFromUtf32(&H1F600))
wb.Refresh()
#End If
'Dim sText = "<html><body>" & "😀" & "</body></html>"
Dim sText = "😀"
wb.DocumentText = sText
End Sub
End Class
I have an image but I cannot put it in this question because my account is not validated !!!
On this image, the 2 Unicode characters displayed are 0x1F600 but on display they are distinct !!!
The first smiley is display in a Label Control and the second in a WebBrowser Control.
Is there a better control to display colorized smileys ?
What about WPF programming ?
Must I begin to program in Java or Python ?
Continue reading...
I will display an emoticon/smiley using Unicode 0x1F600 in a Form of a Window Form Application.
I have following code that display an smiley.
On this page, the smiley is correctly displayed in ORANGE but on my Form the orange color has disappeared !
Since smiley is correctly displayed on browser, I have decided to try to put Unicode character in WebBrowser control.
But the effect is the same !
What Can I do to display a smiley WITH COLOR in WinForm application ?
Thanks for any help.
Public Class Form
Private Sub Form_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'lblCharacter.Text = ChrW(&H2665)
'lblCharacter.Text = Convert.ToChar(&H1F610) & ChrW(&HFE0E)
'lblCharacter.Text = ""
'lblCharacter.Text = "♥"
lblCharacter.Text = Char.ConvertFromUtf32(&H1F600)
#If COMMENT Then
wb.DocumentText = ""
wb.Document.OpenNew(True)
wb.Document.Write(Char.ConvertFromUtf32(&H1F600))
wb.Refresh()
#End If
'Dim sText = "<html><body>" & "😀" & "</body></html>"
Dim sText = "😀"
wb.DocumentText = sText
End Sub
End Class
I have an image but I cannot put it in this question because my account is not validated !!!
On this image, the 2 Unicode characters displayed are 0x1F600 but on display they are distinct !!!
The first smiley is display in a Label Control and the second in a WebBrowser Control.
Is there a better control to display colorized smileys ?
What about WPF programming ?
Must I begin to program in Java or Python ?
Continue reading...