Hello,
I'm working on a FXP program. For this, I've created an ActiveX control. On this control I've placed two Winsock Controls. One to connect with to the FTP server, and one to listen for incomming connections for the LIST function.
Okay, my application creates more than one form on which this control is placed. So, if it should connect to two FTP servers, dynamically two forms are loaded from one form.
Dim Server as Form
Set Server = New frmServer
'Here the form is created
The form starts my control by setting the remote server parameters like IP username etc. and then calls the custom connect method.
When connecting to just one FTP server, everything works OK, but when a second one is loaded, the first one just shows the welcom messages and it just looks like the control is not doing any actions. The second control (on the second from) is connecting and logging in as the first one. Now I'm usign classes for saving those server properties and the username is set correct for the first and second control. So it just looks like the second control is taking over the first one and logging in...
please help me out here, I have no idea what is happening here. I've checked if the control is indeed initialized twice, and that is the case. The username etc. are added to the class collections, so this is OK too. Or so I think.
I know Winsock can 'lose' some data when not using the DoEvents, but I use it after every Winsock command like SendData, Close etc.
I hope anyone can help me out here...
Thx in advance.