Add text bullets to a C# form

后端 未结 5 2153
無奈伤痛
無奈伤痛 2021-02-08 17:54

I am creating a form in C# and need to display text on the form. I need some of the text to show up in a bulleted, unordered list. Is it possible to do this while using a label?

5条回答
  •  一整个雨季
    2021-02-08 18:20

    If you'll take a look at the Character Map (Start > Programs > Accessories > System Tools > Character Map), you can locate the keystroke "code" for most characters.

    For Arial Text, the "Middle Dot" keystroke combination is:

    Alt+0183
    

    To place this in your text using Visual Studio, hold down the Alt key while typing in "0183" on the Numeric Keypad (not the keys over the alpha pad).

    This should give you "·" in your text.

    That's as close as I have come.

    Note that other special characters (degrees - Alt+0176 °, copyright - Alt+0169 ©, and many others) can be included with this technique.

提交回复
热议问题