Adding wodSSH.Net to a form? - WeOnlyDo Discussion board

Adding wodSSH.Net to a form? (wodSSH / wodSSH.NET)

by zubenelgenubi, Thursday, May 01, 2008, 18:02 (5833 days ago)

Hi all,

Newbie Question: Would like to know how I can add the wodSSH.Net component to a form in VS2005.

Also, from that point, how do I add code to my form that will permit me to program what happens when the state of the connection changes?

TIA

Re: Adding wodSSH.Net to a form?

by woddrazen, Thursday, May 01, 2008, 20:15 (5833 days ago) @ zubenelgenubi

Hi Tia,


Here is steps you need to done to add wodSSH.NET to new VS 2005 project :

1) Create new project
2) Go to Project -> Add reference
3) Find Weonlydo.Client.SSH reference select it and click OK
4) In your project code add this to declare wodSSH.NET reference:
[code]Public Class Form1
Dim WithEvents ssh1 As New WeOnlyDo.Client.SSH[/code]

Maybe best help will be to try to our samples. You can find it in component Samples folder. Maybe they can help you to start developing with wodSSH.NET.

If you need and other help let us know and we will try to help you.

Hope I helped.


Regards,
Drazen

Re: Adding wodSSH.Net to a form?

by zubenelgenubi, Thursday, May 01, 2008, 20:51 (5832 days ago) @ woddrazen

Hi,

Thanks for the quick reply.

I have followed the samples (in c#) that you include and find them very helpful.

What I was wondering is how its possible to set up an event to be programmed. Where in VS2005 is it possible to add a wodSSH.NET event (such as 'StateChange'? Im pretty certain this was possible with ActiveX components. Is it also possible with .NET components.

TIA

Re: Adding wodSSH.Net to a form?

by woddrazen, Thursday, May 01, 2008, 20:58 (5832 days ago) @ zubenelgenubi

Tia,


Basically you should type in Form load:

ssh1.StateChangedEvent += and hit tab key twice and Event will be created.

Let us know how it goes.


Drazen