Hello,
you'll have to look it up. In a domain environment, you'll have to look at
ActiveDirectory. You can do this either by performing LDAP query
(
http://www.infinitec.de/articles/exc...ermultiad.aspx). Another
option is to bind to the user object directly by using Sid Binding (You'll
have to obtain the SID first. In .NET 2.0 you can use the
NTAccount(accountname).Translate(typeof(SecurityDe scriptor)), see
http://msdn2.microsoft.com/En-US/library/ms675562.aspx). And a third option
is calling the DsCrackNames function via Interop.
Best regards,
Henning Krause
"Sam" <> wrote in message
news:3B20289A-3075-4B70-80D1-...
> Dear Sir,
>
> Please; How can I display the name of the logged in user when I am using
> windows integrated security in my Windows forms application?I used
> My.User.Name but it displays the Login name only.
>
> Thank you.
>