Hi, I am just now starting to program with VB.Net after using VB6 still for the past several years. One of the programs (Class) I am converting over gets the UserName from the registry. I have found the
but I am getting a security warning when I am testing it on my computer. I currently also have a separate function for Win 2000. Is this needed for .Net? I have searched the net for a lot, but I couldn't find anything concrete on the best way to read the user name.
Code:
System.Environment.UserName
but I am getting a security warning when I am testing it on my computer. I currently also have a separate function for Win 2000. Is this needed for .Net? I have searched the net for a lot, but I couldn't find anything concrete on the best way to read the user name.