0
我有一个标签和验证码:以编程方式为标签添加空格?
string User = Environment.UserName;
toolStripStatusLabel1.Text = "This Software is Licensed to:" + User;
出于某种原因,输出为:
This Software is Licensed to:UserName
我有一个标签和验证码:以编程方式为标签添加空格?
string User = Environment.UserName;
toolStripStatusLabel1.Text = "This Software is Licensed to:" + User;
出于某种原因,输出为:
This Software is Licensed to:UserName
很简单的解决办法:
string User = Environment.UserName;
toolStripStatusLabel1.Text = "This Software is Licensed to: " + User;
// Add a space after 'to:'
希望这有助于!
尝试在“:”后插入空格
面掌!哇,我感觉不好...谢谢,我会接受你的回答时,它会让我 –
这不是一个笑话的问题,大声笑 –