Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a plus minus sign to a label [closed]

Here my requirement is to assign + and - to a number both at a time to a number in the label as shown in bellow image in c# asp.net!

enter image description here

like image 292
Randhi Rupesh Avatar asked Dec 01 '22 03:12

Randhi Rupesh


2 Answers

Use unicode character "PLUS-MINUS SIGN".

Its code point is (U+00B1)

like image 96
Sergey Kalinichenko Avatar answered Dec 04 '22 10:12

Sergey Kalinichenko


label.Text = "\u00B1"

The Unicode character Plus-Minus-Sign has the code 00B1, and the unicode escape sequence in C# is \u followed by 4 hex-digits.

like image 29
JSQuareD Avatar answered Dec 04 '22 09:12

JSQuareD