PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 1.00 average.

cant find UserName or LoginName in dot net help?

 
 
mp
Guest
Posts: n/a
 
      26th Jun 2010
in vb6 it's GetUserName(stBuff, lBuffLen)
where GetUserName() is in the win api
how to do in dotnet? (2008 express)
couldn't find in help - guess i don't know the right search term, user,
username,login,loginname etc didn't turn up an answer that i could see.

thanks
mark


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      26th Jun 2010
Am 26.06.2010 20:40, schrieb mp:
> in vb6 it's GetUserName(stBuff, lBuffLen)
> where GetUserName() is in the win api
> how to do in dotnet? (2008 express)
> couldn't find in help - guess i don't know the right search term, user,
> username,login,loginname etc didn't turn up an answer that i could see.


Environment.UserName Property (System)
<URL:http://msdn.microsoft.com/en-us/library/system.environment.username.aspx>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
 
Reply With Quote
 
mp
Guest
Posts: n/a
 
      27th Jun 2010

"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:i05jvi$grb$(E-Mail Removed)...
> Am 26.06.2010 20:40, schrieb mp:
>> in vb6 it's GetUserName(stBuff, lBuffLen)
>> where GetUserName() is in the win api
>> how to do in dotnet? (2008 express)
>> couldn't find in help - guess i don't know the right search term, user,
>> username,login,loginname etc didn't turn up an answer that i could see.

>
> Environment.UserName Property (System)
> <URL:http://msdn.microsoft.com/en-us/library/system.environment.username.aspx>
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Thanks Herfried,
i could swear that username didn't pull that up in my searches...but it sure
does now!
Guess i was just temporarily blind!?! (or permanently stupid maybe :-) )
Thanks again,
Mark


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership help: LoginName control showing windows username sklett Microsoft ASP .NET 2 4th Oct 2007 03:44 AM
Automatic Filesave using Loginname =?Utf-8?B?U1U=?= Microsoft Excel Programming 4 27th May 2007 12:24 AM
Populate LoginName of the user! Please Help! =?Utf-8?B?Sk9N?= Microsoft Access 1 19th Apr 2006 12:07 AM
Even 4319 loginname and hostname are the same =?Utf-8?B?SnVoYQ==?= Microsoft Windows 2000 Networking 1 25th Mar 2006 09:49 AM
LoginName Berny Microsoft Access Form Coding 3 9th Nov 2003 06:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:50 PM.