Re: VB.NET sample ? - WeOnlyDo Discussion board

Re: VB.NET sample ? (General questions)

by Bertrand DEMARCQ, Monday, January 07, 2008, 15:53 (6168 days ago) @ Bertrand DEMARCQ

I tryed this but it doesn't connect, I don't get the Ssh1_Connected1()
Any help ?

Public Class Form1

Public WithEvents Ssh1 As wodSSHTunnelLib.wodTunnel

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ssh1 As New wodSSHTunnelLib.wodTunnel
ssh1.Hostname = XXXXX.XXXXX.XXXXX
Ssh1.Login = XXXXXXXXXX
ssh1.Password = XXXXX
ssh1.Timeout = 60
ssh1.Connect()
End Sub

Private Sub SSH1_ChannelStart(ByVal Chan As wodSSHTunnelLib.IChannel)
MsgBox( go! )
End Sub

Private Sub Ssh1_Connected1() Handles Ssh1.Connected
MsgBox( Connected )
End Sub
End Class


Complete thread: