VB .NET: How to display "Licenced to: user name"

Hi!

I am making About form where I want to display, between other information, something like this: "This program is licenced to: user name".
How to fetch the name of the person  Which class to use
I know there is the PC user name digged somewhere in the registry. How to get it from within VB .NET IDE

Thanks a lot!

Dida


Answer this question

VB .NET: How to display "Licenced to: user name"

  • Manitra

    I don't know visual basic, but do think you are looking for:

    SystemInformation.UserName

    so that you need to fill your text variable with:

    variable.Text = "Licenced to: " + SystemInformation.UserName;


  • VB .NET: How to display "Licenced to: user name"