| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Cannot create trace form |
| colson22 spam@powerhouselinux.com From: salt lake city, UT USA Posts: 1 Member Since: 01/02/03 |
posted January 2, 2003 2:19 PM Whenever I try to create a trace form while using the ftp for .net I get the following error, and the application fails to compile. I have copied this source directly from your help file. Overload resolution failed because no accessible 'New' accepts this number of arguments. Source:: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Create a TraceForm, passing in the Tcp instance used by the Ftp component Dim myForm As New Dart.PowerTCP.Ftp.TraceForm(Ftp1.Connection) ' Supply login information Ftp1.Server = "MyFtpServer" Ftp1.Username = "blah" Ftp1.Password = "mypass" ' Invoke a command Ftp1.Invoke(Dart.PowerTCP.Ftp.FtpCommand.NoOp) ' Close the connection Ftp1.Close() End Sub Any Help apperciated, Frank |
Jeff Cranford![]() From: Rome, NY USA Posts: 586 Member Since: 05/30/01 |
posted January 3, 2003 9:50 AM The documentation is incorrect here. Thanks for catching it, we'll fix it for future releases. To use this form, you need to specify the TraceForm.TraceHandler method as the event handler for the Ftp.Trace event. This would look like the following. ' Create a TraceForm Dim myForm As New Dart.PowerTCP.Ftp.TraceForm() ' Add the handler to the Trace event AddHandler Ftp1.Trace, AddressOf myForm.TraceHandler ' Supply login information Ftp1.Server = "MyFtpServer" Ftp1.Username = "blah" Ftp1.Password = "mypass" ' Invoke a command Ftp1.Invoke(Dart.PowerTCP.Ftp.FtpCommand.NoOp) ' Close the connection Ftp1.Close() |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|