Well, I have no choice but to answer my own question, because the code will be too much to embed as comments in the jhwist answer. Sorry jhwist. I had no choice.
@appinger, hope you find this answer helpful. Took me time to understand that this works. :)
cmbBoxPerforceWorkspaceLocation - combobox . , Winforms.
Windows. Windows xxxx\\ . longname shortname. -, , , .
, .
using (var p4 = new P4Connection())
{
p4.Connect();
var longName = WindowsIdentity.GetCurrent().Name;
var shortname = longName.Substring(longName.IndexOf("\\") + 1);
var records = p4.Run("clients", "-u", shortname);
cmbBoxPerforceWorkspaceLocation.Items.Clear();
foreach (P4Record record in records.Records)
{
cmbBoxPerforceWorkspaceLocation.Items.Add(record["client"]);
}
}