Jump to content
Xtreme .Net Talk

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


Recommended Posts

Guest Cyber_Boy
Posted

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?

Guest Cyber_Boy
Posted

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?

Guest Perl
Posted
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 ? ?:)
Guest Civic_Addict
Posted

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.....:-\

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...