AFAIK you can only create forms with this method. If I'd like to create a Windsock I'd use the load method. First, set the index for your WinSock (in edit mode) to 0. Then try this:

-

Load Form1.WinSock1(1)

-

Now you can use both Winsock like this:

[list}
WinSock(0).Listen
WinSock(1).Listen[/list]

P.S.: You should be able to link a var to the created WinSock-object. Don't really know if it works, but I think so.

------------------
Fox
[email protected]
[No homepage yet]