Hennie. Submit this as a FAQ and I will approve it.
>
http://www.levelextreme.com/faq.asp#22 shows a code snippet for vfp to logon to the universal thread.
>The code below does the same in vb. I hope you will find it usefull.
>
>Sub main()
> Dim lcUsername As String
> Dim lcPassword As String
> 'Dim oIE As object
> Dim oIE As SHDocVw.InternetExplorer
> Dim nStartSeconds As Single
> lcUsername = "******"
> lcPassword = "******"
>
> 'oIE = CreateObject("InternetExplorer.Application")
> Set oIE = New SHDocVw.InternetExplorer ' this needs a reference to: "Microsoft Internet Controls"
> oIE.Navigate ("
www.levelextreme.com")
>
> nStartSeconds = Timer()
> Do While Timer() - nStartSeconds < 1
> Loop
>
> nStartSeconds = Timer()
> Do While oIE.Document.ReadyState <> "complete" And (Timer() - nStartSeconds) < 30
> Loop
>
> If oIE.Document.ReadyState <> "complete" Then
> MsgBox "Universalthread is unavailable"
> oIE.Visible = True
> Exit Sub
> End If
>
> oIE.Document.Forms(0).Key.Value = lcUsername
> oIE.Document.Forms(0).Password.Value = lcPassword
>
> oIE.Document.Forms(0).Submit
> oIE.Visible = True
>End Sub