G
Guest
Hi Folks,
I made aninteresting discovery today in regards to the Visual Basic .NET 2.0
The My namespace My.User.Name returns the username in a Windows form
application but does not work in a Windows Console Application. Not sure why.
I suspect for security reasons. However I can use most of the other My
methods.
Can anyone shed some light on what is happening here? I can get the UserName
without any problem using System.Environment.Username so why doesn't the My
namespace method work?
I made aninteresting discovery today in regards to the Visual Basic .NET 2.0
The My namespace My.User.Name returns the username in a Windows form
application but does not work in a Windows Console Application. Not sure why.
I suspect for security reasons. However I can use most of the other My
methods.
Can anyone shed some light on what is happening here? I can get the UserName
without any problem using System.Environment.Username so why doesn't the My
namespace method work?