The DataSocket Server is actually an ActiveX Automation Server, and using this functionality is the best way to accomplish what you are asking. To access this in Visual Basic you can either add a reference to the "National Instruments DataSocket Server x.x" library and bind it to your app early or dynamically bind it so that you can create an object of type cwDataServer, and call its Show, Hide, and Close methods. I have included a project that shows exactly how to do this.
Jason F.
Applications Engineer
National Instruments
www.ni.com/ask