I tried to create new (winsock) objects with code... didn't succeed... ( I did get on well creating new forms though)
( I put a winsock control named winsock1 in the form )

I tried

Dim winsk as Winsock
set winsk = new Winsock
(error : Invalid use of New Keyword)

Dim winsk as Winsock
set winsk = new Winsock1
(error : User Defined type not defined)

Dim winsk as Winsock
Set winsk = new Form1.Winsock1
(error : User Defined type not defined)

Dim winsk as new Winsock
(error : Invalid use of New Keyword)

Dim winsk as new Winsock1
(error : User Defined type not defined)

(I tried using "Dim winsck as Object" too, same results)

Anyone got any ideas?

PS :
Suddenly I remember that I can create new forms that contain a winsock control, then use it from there... But if you got a better method please tell me. Thanks