Free Visual Basic 2008 Source Code VB2008
How to Find A User Name








HOW TO FIND A USER NAME USING VISUAL BASIC 2008


DESCRIPTION

This Visual Basic 2008 code is a simple source code example of how to find the User Name using Visual Basic 2008 (VB 2008).


THE VB2008 SETUP

Add the following lines to your 'Module1' code (add the Imports as the first lines above Module1 - ie at the top!)

Imports System
Imports System.IO
Imports System.Collections
Public MyUserName As String



THE FREE VB2008 SOURCE CODE

Copy and Paste this code wherever you need it:

Sub FindUserName()
'..... Free Source Code from www.freevisualbasic2008sourcecode.com
'..... Find the User Name for this computer
     MyUserName = System.Environment.UserName
End Sub





Home to FreeVisualBasic2008SourceCode.com
How to write to a CSV file
How to write to a TEXT file
How to read from a CSV file
How to read from a TEXT file
How to find a User Name
How to fill a ListView
How to write a ListView data table to a CSV file
How to call another program
How to copy and paste to the Windows Clipboard
How to concatenate (join) text
How to sort and Array


Copyright SGDesigns (c)2010

Our aim is to provide simple concise and easy to follow Free Visual Basic 2008 Source Code for the casual programmer in VB2008. We hope you find the Visual Basic 2008 code example uselful. This example shows how to find the system variable that gives the UserName of the logged user.




counter