Display a downward triangle in VB.NET ▼ (U + 25BC)

Hey, I'm trying to figure out how to correctly display the ▼ symbol in a winform.NET application.

I am creating a custom control and for the button I want this symbol to appear. I can set the text for this character, but it looks like an empty square.

Any ideas on what I need to do so that this character displays correctly on my forms?

I use the font Arial, which is compatible with this symbol.

EDIT . It is currently installed as follows:

btnCalendarToggle.Text = "▼"  'Yes, it appears exactly like this in my code

More information about the character can be found here: http://www.fileformat.info/info/unicode/char/25bc/index.htm

EDIT2 : I tried to add some other Unicode characters and received the following message:

"Some Unicode characters in this file cannot be saved in the current code. Do you want to save this file as Unicode to maintain your data?"

After pressing YES in this message, it still does not work. It looks like the encoding method may be wrong for the file ... I don't know how to install it. Has anyone else tried to display this character in winform before?

+3
source share
2 answers

Often problems can arise (both with version control systems and with diff tools) if you insert more complex Unicode characters into the source files.

escape- .

btnCalendarToggle.Text = "\u25BC";

, , .

, Arial ( ), , ​​ Unicode ( Visual Studio , ), .

+11

, ?

, chr (int), .

Dim i As Integer
For i = 0 To 255
    txtTest.Text = txtTest.Text & Chr(i) & " -- " & i.ToString() & Environment.NewLine
Next i

, .

0

Source: https://habr.com/ru/post/1703349/


All Articles