Autor Beitrag
Metrik
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 80

Win XP, Win Vista
C# (VS 2003, #Develop)
BeitragVerfasst: Do 05.01.06 20:44 
Hallo

Wie kann ich mit C# den gerade angemeldeten Benutzer herausfinden.

Metrik


Moderiert von user profile iconChristian S.: Topic aus C# - Die Sprache verschoben am Do 05.01.2006 um 19:47
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 05.01.06 20:47 
Hm. Irgendwie komme ich mit Deinen Fragen nicht klar. Wo ist jetzt der Unterschied hierzu? :gruebel:

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
faux
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36

Win XP Pro
C# (VS 2005), Delphi 7
BeitragVerfasst: Sa 07.01.06 11:18 
Hallo!

Mit Environment.MachineName bekommst du den Namen des Lokalen PCs, und mit Environment.UserName den Benutzernamen des Benutzers, der dein Programm (bzw den aktuellen Thread) aufgerufen hat, was meistens (aber wie gesagt nicht immer) der aktuell angemeldete Benutzer ist.

Grüße
Faux