Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Button with Text and Down Arrow

Is it possible to create a button with WinForms which has the text "Details" and then a down arrow next to it.

It is not vital to my program but I personally think it looks nicer for the user, especially in dialog boxes which expand to show more error details.

like image 298
hshah Avatar asked Sep 20 '12 19:09

hshah


2 Answers

The below code will give your Button the word "Details" with an arrow pointing downwards next to it.

Button1.Text = "Details " + char.ConvertFromUtf32(8595);
like image 171
Joshua Van Hoesen Avatar answered Nov 02 '22 00:11

Joshua Van Hoesen


It sounds like you are asking about the contents of the button itself and want to handle the expand/collaspe functionality yourself. You could create a png with the "down arrow" image, and then position the icon right-middle using the image property of button in the designer.

like image 44
Steven Hunt Avatar answered Nov 01 '22 22:11

Steven Hunt