Login  
Search All Forums
Dart Home | PowerTCP Telnet for .NET | Custom Development Reply | PowerTCP Telnet for .NET Topics | Forums   
AuthorForum: PowerTCP Telnet for .NET
Topic: How to add Telnet component to VS2005 Windows Service
perf101
srs@perfectionsoftware.com

From: Pembroke Pines, FL USA
Posts: 18
Member Since: 07/01/02
posted June 2, 2006 7:25 PM

I created a Windows Service type of project (ie. no forms) and I need to include the Telnet .NET v 1.0.3.0 component.

The toolbox is empty so how do I do that?

Thanks,

Steve
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 5, 2006 11:58 AM

You would have to add a reference to Dart.PowerTCP.Telnet.dll to the project, then define and create the Telnet component manually.

The quickest way to do it would be to add a form to the project, add a Telnet control, then delete the form. That will add the reference and license file to the project.

You should not have any trouble creating the Telnet component after doing that. If you do, please post what you tried to do and what error messages you received when you did it.

perf101
srs@perfectionsoftware.com

From: Pembroke Pines, FL USA
Posts: 18
Member Since: 07/01/02
posted June 5, 2006 2:04 PM

Telnet1 was "not declared" so I added the following to my code

Friend WithEvents Telnet1 As Dart.PowerTCP.Telnet.Telnet

but I still get the following:

Object reference not set to an instance of an object.

I had already deleted the form, licenses.licx appears in my project, Form1.designer.vb is still there and Form1.resx is still there.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 5, 2006 2:07 PM

Are you calling Telnet1 = new Telnet() anywhere?
perf101
srs@perfectionsoftware.com

From: Pembroke Pines, FL USA
Posts: 18
Member Since: 07/01/02
posted June 5, 2006 2:29 PM

Yes, my Friend command needed "New"

Friend WithEvents Telnet1 As New Dart.PowerTCP.Telnet.Telnet

Thanks,

Steve
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 5, 2006 2:30 PM

So you have it working now?
perf101
srs@perfectionsoftware.com

From: Pembroke Pines, FL USA
Posts: 18
Member Since: 07/01/02
posted June 5, 2006 2:35 PM

Yes it is working great.
Reply | PowerTCP Telnet for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX