Re: Recieve problem (General questions)
Did a short test with your example code without changing a thing,
but it does not seem to fire correctly there either. If the
connection fails, the code breaks att .Connect and presents a vb/windows error instead of my dialog.
Say if i enter a host that does not exsist, the code breaks with
Run-time rror '11001': Host not found . If the wodSSH1_Connected
event fired i should have gotten my dialog (below )instead, correct?
Or in your example case, CONNECT error: & ErrorText & vbCrLf
[code]
Private Sub wodSSH1_Connected(ByVal ErrorCode As Integer, ByVal ErrorText As String)
If ErrorCode <> 0 Then
MsgBox Error & ErrorCode & has occured: & ErrorText, vbCritical, Connection error
Screen.MousePointer = vbDefault
Exit Sub
Else
wodSSH1.Disconnect
End If
End Sub
[/code]
Cheers!
Maverick