G
Gary
I have a status text on my status bar which simply lists the logged in
user name.
the code that puts text into this is:
stUserName.Text = "Currently logged in user: " +
System.Environment.UserName;
However our login names here are firstname, surname initial, like so: -
freds
I'd like to write the status strip as:
Currently logged in user: Firstname Surname (logged in user)
e.g.
Currently logged in user: Fred Smith (freds)
So i need to way of linking a list which I can populate myself of names
with user names.
I looked at enums but it would seem they only allow you to assign names
to numbers.
Whereas i need to assign full names to user names.
I could use lots of 'if's' but id rather have one collection that
simply has Fullname, and associated username if possible.
Whats the best way to do this?
Thanks,
Gary.
user name.
the code that puts text into this is:
stUserName.Text = "Currently logged in user: " +
System.Environment.UserName;
However our login names here are firstname, surname initial, like so: -
freds
I'd like to write the status strip as:
Currently logged in user: Firstname Surname (logged in user)
e.g.
Currently logged in user: Fred Smith (freds)
So i need to way of linking a list which I can populate myself of names
with user names.
I looked at enums but it would seem they only allow you to assign names
to numbers.
Whereas i need to assign full names to user names.
I could use lots of 'if's' but id rather have one collection that
simply has Fullname, and associated username if possible.
Whats the best way to do this?
Thanks,
Gary.