BP Forums
Computer User - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9)
+----- Thread: Computer User (/showthread.php?tid=392)



Computer User - vbcodegeek - 08-21-2011

I need a little Help. I am trying to figure out how to get the username of the person currently using my application.

Example:
VbcodeGeek

I hope I explained it good.


Re: Computer User - brandonio21 - 08-21-2011

I believe that it is this code you are looking for:

Code:
My.User.Name



Re: Computer User - vbcodegeek - 08-22-2011

Thanks for the Help! : <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->


Re: Computer User - brandonio21 - 08-22-2011

You're very welcome!!


Re: Computer User - openeXpressions - 11-01-2011

Nice tip!
Would you know how to get the OS info?


Re: Computer User - brandonio21 - 11-01-2011

You can use the following to get the operating system name,
Code:
My.Computer.Info.OSFullName
All other information is located in
Code:
My.Computer.Info.



Re: Computer User - openeXpressions - 11-01-2011

Hey thanks! That's really helpful!