Inserting an integer value in a TextBox

后端 未结 5 1665
臣服心动
臣服心动 2020-12-07 05:37

I need to show an integer value in a TextBox in my C# Windows Forms application (GUI). I have an int32 value available. I could not find a container like a TextBox that take

5条回答
  •  轮回少年
    2020-12-07 05:59

    You can use the ToString() method to convert the integer to a string.

    int x = 10;

    Console.WriteLine(x.ToString())

提交回复
热议问题