Reputation: 7293
I have a label and this code:
string User = Environment.UserName;
toolStripStatusLabel1.Text = "This Software is Licensed to:" + User;
For some reason the output is:
This Software is Licensed to:UserName
Upvotes: 0
Views: 473
Reputation: 4749
Very simple fix:
string User = Environment.UserName;
toolStripStatusLabel1.Text = "This Software is Licensed to: " + User;
// Add a space after 'to:'
Hope this helps!
Upvotes: 3