其实很简单,一句话了事:
this.cmbUserName.Text = Environment.UserDomainName + "\\" + Environment.UserName;
// Environment.MachineName;
其实很简单,一句话了事:
this.cmbUserName.Text = Environment.UserDomainName + "\\" + Environment.UserName;
// Environment.MachineName;