Add text bullets to a C# form

后端 未结 5 2143
無奈伤痛
無奈伤痛 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:34

    Yes you can use text below:

    const string text = @"To continue please selected one of the actions below:
    
    . Click ButtonA to do this action.
    . Click ButtonB to do this action.";
    label1.Text = text;
    

    You can use special characters for the bullet as well such as *.

提交回复
热议问题