Click to See Complete Forum and Search --> : Is it possible to add a Winsock control at run time?


February 15th, 2000, 07:41 AM
Im creating an array of winsock controls, I can place the first instance at design time and then create and kill more instances programmatically, however, I want to be able to create the 1st instance programmatically, is it possible???

Lothar Haensler
February 15th, 2000, 08:06 AM
yes, it is possible.
use the Add method of the Controls collectÃ*on.

Lothar Haensler
February 15th, 2000, 09:12 AM
sample

Licenses.Add "MSWinsock.winsock.1"

me.Controls.Add "MSWinsock.winsock.1", "s1"

Dark Sean
February 15th, 2000, 10:05 AM
Thank you very much Lothar