* "Gilbert Tordeur" <gi*************@fr.york.com> scripsit:
In a windows form, how can I retrieve the Windows userid (what we type in
the Ctrl-Alt-Suppr dialog box) of the current user ? Thank you.
'Environment.UserName' or 'SystemInformation.UserName'.
Notice that the latter would require a reference to
"System.Windows.Forms.dll", and that's not the preferred way for
console/service applications.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>