如何从designer.cs代码或运行时创建winsock控件(ActiveX控件)的控件数组,而不是从工具箱中拖动winsock控件并在c#windows窗体中的设计时使用它 [英] how to create control array of winsock control(ActiveX control) from designer.cs code or at run-time instead of dragging winsock control from toolbox and using it in design time in c# windows forms

查看:103
本文介绍了如何从designer.cs代码或运行时创建winsock控件(ActiveX控件)的控件数组,而不是从工具箱中拖动winsock控件并在c#windows窗体中的设计时使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我的名字在过去的3天里都是致命的,我一直在打破如何创建 winsock 控件的控制数组 ActiveX控件)运行时而不是从工具箱拖动winsock控件并在c#windows窗体中的设计时使用它?

I我没有冒犯这个论坛的人/成员,他慷慨地帮助我/分享他在c#windows窗体中创建控制阵列winsock的知识。

我只是想知道如何去做。

例如我在设计时有一个名为: sckClient 的winsock控件然后在创建名为的控制数组后: sckClient(0)我希望它出现在我的winsock控件名称之上: sckClient

但我知道在这里可以回答winsock控件的控件数组的创建。

在vb6中,我们可以基于 index 属性在飞行中创建 winsock 控件的控制数组。但我不知道在c#windows窗体中支持winsock控件的索引属性。



任何人都可以帮我解决如何在飞行中创建控制阵列的winsock控件然后在c#windows窗体中将创建的控件数组操作为其他形式的代码?



我知道我可能会在这个论坛上问太多。我只想要一个关于如何在飞行中创建winsock控件的控件数组的示例,将其分配/初始化为winsock控件(如果需要),然后如何应用创建的winsock控件控件数组来在c#中以形式操作winsock控件的函数窗户形式。



有人能帮帮我吗?任何人都可以帮助我/指导我如何解决我的问题。任何帮助/指导解决这个问题将不胜感激。!

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.!

推荐答案

这篇关于如何从designer.cs代码或运行时创建winsock控件(ActiveX控件)的控件数组,而不是从工具箱中拖动winsock控件并在c#windows窗体中的设计时使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆