Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display arrow in button? Winforms

Tags:

c#

.net

winforms

How do I get this type of arrow in button as shown in this image link.

I need to get this type of arrow for UP, DOWN, LEFT and RIGHT.

like image 523
Raize Ahamed Avatar asked Jun 01 '15 17:06

Raize Ahamed


2 Answers

Use a button with no text and set the image property to an image of an arrow.
You can use this image (just rotate it to any direction you need)

enter image description here

The result looks like this:

enter image description here

like image 174
Zohar Peled Avatar answered Oct 31 '22 23:10

Zohar Peled


You can also do that using UTF32 characters values :

  Button1.Text = char.ConvertFromUtf32(0x2193);
  Button2.Text = char.ConvertFromUtf32(0x2191);

Gives :enter image description here

You cal use bold in the font if you want.

Have a look to U+2190 in List of Unicode characters

like image 36
JPBlanc Avatar answered Nov 01 '22 00:11

JPBlanc