THIS.oSock = CREATEOBJECT("Myosock")Actually, the way that I do this is to use the Visual Class Designer as I told you earlier. I create a custom class based on the OLE Container control and insert the winsock control. Takes about 3 seconds < s >. Then instantiate my custom class at runtime.