hi, just a thought...
i can extract users login name by using VB's SysInfo control, here's how:
load the SysInfo control by doing this:
1. In the VB IDE click "Project" upper menu.
2. Then "Components"
3. From the list, search for the "Microsoft SysInfo Control" and click
it.
4. Put the control on the form.
then declare first...
Public sysInfo2 As New ActiveDs.WinNTSystemInfo 'declaration for using
'the active directory
'type library
Public SysUser As String
'get the username
SysUser = sysInfo2.username
text1.text = trim(Sysuser)
hope this one works for you...good luck.