Problem inserting a Winsock control inside a class in Vb.NEt

  • Thread starter Thread starter Cyber_Boy
  • Start date Start date
C

Cyber_Boy

Guest
What can i use to log on an FTP in Vb.NET?

I'm trying to log on an ftp via a program in VB.NEt

is there something that is almost the same as the Winsock?

i need the funcionality to send PASV, Delete, Upload, Download, List and all other functions

is there a way to do it?
 
Im writing a class with which i need to connect to an FTP server.

Now i inserted a winsock control by first referncing the ocx control and then i wrote

"Dim withevents TestWS as mswinsocklib.winsock" so as i can insert it.

then i initialzed it and did everything.

Now when i try to call a method of this "TestWS" that i created i get this error in the Task List

F:\Programming\VB.NET\Test\Winsock Test\Class1.vb(18): 'Close' is ambiguous across the inherited interfaces 'MSWinsockLib.IMSWinsockControl' and 'MSWinsockLib.DMSWinsockControlEvents_Event'.

(this was when i tried to call the TestWS.Close() method)

what can i do to fix this problem?
 
They do not suggest using the winsocket control like you used to in VB... you need to look into full support in the System.Sockets Collection, i dont have much info on it, and it seems alot harder to handle then the winsocket control, but isnt every thing in VB.Net ? ?:)
 
The Winsock control is not supposed to be used from .NET, there are more functional replacements in the System.Net namespace.

The Winsock control does not come with .NET.
 
divil said:

The Winsock control does not come with .NET.

Umm. I have it. Perhaps due to me having VB6 previous though? I'm also having issues with it. Picky frickin' control.....:-\
 
Back
Top