Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个标签和这个代码:
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:'
希望这可以帮助!
尝试在“:”之后插入一个空格