Click here to Skip to main content
15,891,738 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi my name is vishal for past 3 days i have been breaking my head on how to create control array of winsock control(ActiveX control) on fly or at run-time instead of dragging winsock control from toolbox and using it in design time in c# windows forms?
I am not offending the person/member of this forum who did generously helped me/shared his knowledge on creating control array of winsock in c# windows forms.
I just would like to know how to do it.
For example i have a winsock control named:sckClient in design time then after creating control array named:sckClient(0) i would like it to appear on top of my name of my winsock control:sckClient.
But i know that creation of control array of winsock control is answered here.
In vb6 we can create control array of winsock control on fly based on index property. But i dont know think index property of winsock control is supported in c# windows forms.

Can anyone help me please on how to create control array of winsock control on fly and then manipulating the created control array into code in other forms in c# windows forms?

I know that i may be asking too much from this forum. I just want a sample on how to create control array of winsock control on fly,assigning/initializing it to a winsock control (if needed) and then how to apply created control array of winsock control to manipulate functions of winsock control in form in c# windows forms.

Can anyone help me please? Can anyone help me/guide me on how to solve my problem. Any help/guidance in solving of this problem would be greatly appreciated.!
Posted
Comments
[no name] 4-Jul-14 3:46am    
It would be exactly the same way that you have already been told how to do this for your winsock controls AND timers.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900