Try this:
System.Security.Principal.WindowsIdentity.GetCurrent.Name
Vladimir [VB.NET Team]
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Reply-To: "Steven Caliendo" <
[email protected]>
| From: "Steven Caliendo" <
[email protected]>
| Subject: Determining user name ?
| Date: Mon, 15 Sep 2003 15:23:18 -0400
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <#K#
[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 64.80.232.82
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
..phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:137115
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hi,
|
| In my web app I need to know who is currently logged on to the PC. Can
| someone tell me how to do this ?
|
| Thanks,
|
| Steve
|
|
|