Greetings All,
I used the following in a Windows Based Application and It works fine.
Imports System.Security.Principal.WindowsPrincipal
and then used Msgbox(SystemInformation.Username) to popup the current user name. When I tried doing a console.writeline(systeminformation.username) it does not work.
Any suggestions???
I used the following in a Windows Based Application and It works fine.
Imports System.Security.Principal.WindowsPrincipal
and then used Msgbox(SystemInformation.Username) to popup the current user name. When I tried doing a console.writeline(systeminformation.username) it does not work.
Any suggestions???