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 9:13:30 AM(UTC)
adyy

Rank: Member

Reputation:

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

I want to konw how to get the current login account name.?
Thanks!
Rob  
#2 Posted : Sunday, August 25, 2019 9:35:12 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 433
United States

Thanks: 5 times
Was thanked: 84 time(s) in 72 post(s)
You can't obtain the current login username or password, for security purposes.
adyy  
#3 Posted : Sunday, August 25, 2019 9:03:47 PM(UTC)
adyy

Rank: Member

Reputation:

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

I see. Thank you.
markd  
#4 Posted : Tuesday, September 24, 2019 7:06:25 PM(UTC)
markd

Rank: Member

Reputation:

Groups: Approved
Joined: 9/24/2019(UTC)
Posts: 9
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 Tuesday, September 24, 2019 7:07:49 PM(UTC)  | Reason: Not specified

Rob  
#5 Posted : Tuesday, September 24, 2019 7:18:30 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 433
United States

Thanks: 5 times
Was thanked: 84 time(s) in 72 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.