I see. I dont think include the winsock control as a reference only. It has to be included as a component. It doesnt have to actually be on a form for you to reference its type in code. Trouble I have had with it though, is that I couldnt instance of a winsock object at runtime. I had to actually had to have it on a form, and then load control in an array when I needed more.