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:'
お役に立てれば!
「:」の後にスペースを挿入してみてください