StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
adyy  
#1 Posted : Sunday, August 25, 2019 3:13:30 PM(UTC)
adyy

Rank: Member

Reputation:

Groups: Approved
Joined: 8/25/2019(UTC)
Posts: 20
China

Was thanked: 1 time(s) in 1 post(s)
I want to konw how to get the current login account name.?
Thanks!
Rob  
#2 Posted : Sunday, August 25, 2019 3:35:12 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 post(s)
You can't obtain the current login username or password, for security purposes.
adyy  
#3 Posted : Monday, August 26, 2019 3:03:47 AM(UTC)
adyy

Rank: Member

Reputation:

Groups: Approved
Joined: 8/25/2019(UTC)
Posts: 20
China

Was thanked: 1 time(s) in 1 post(s)
I see. Thank you.
markd  
#4 Posted : Wednesday, September 25, 2019 1:06:25 AM(UTC)
markd

Rank: Member

Reputation:

Groups: Approved
Joined: 9/25/2019(UTC)
Posts: 10
United States

Thanks: 1 times
If you mean the Windows user name then this works for me:
sp.MessageBox(clr.System.Security.Principal.WindowsIdentity.GetCurrent().Name, 'name');

Edited by user Wednesday, September 25, 2019 1:07:49 AM(UTC)  | Reason: Not specified

Rob  
#5 Posted : Wednesday, September 25, 2019 1:18:30 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 post(s)
Huh, I had assumed he was referring to the login for the account signed in via S+, the forum account from logging in via the tray icon.

Reading the post again, he doesn't mention anything that specifically states that...oops!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.