本文介绍了对于winsock控件的c#窗体中,vb6的winsock控件的Index属性等价的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我的名字在过去的3天内是我的头脑,我一直在寻找索引属性的winsock控件相当于vb6在c#windows窗体中进行winsock控制。



我想在c#windows窗体中拼命地知道 Index 属性等同于winsock控件,因为知道这将使我能够在c#windows窗体中完成与套接字编程相关的大量工作winsock控件。



我必须在c#windows窗体中仅使用winsock控件进行套接字编程,因为我的 BOSS的命令并且不能使用相关的类使用 System.Net.Sockets



我只是想知道在c#的windows形式中,winsock控件相当于vb6的什么是index属性winsock控制?



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

Hi my name is vishal for past 3 days i have been breaking my head on finding Index property of winsock control equivalent of vb6 in c# windows forms for winsock control.

I want to desperately know Index property equivalent for winsock control in c# windows forms because knowing that will enable me to finish lot work associated with socket programming in c# windows forms using winsock control.

I have to use only winsock control in c# windows forms for socket programming because of my BOSS's orders and cannot use classes associated with System.Net.Sockets.

I just want to know what is Index property of winsock control equivalent of vb6 in c# windows forms of winsock control?.

Can anyone help me Please! Can anyone help me/guide me solve my problem!? Any help/guidance in solving of this problem would be greatly appreciated!

推荐答案

System.Net.Sockets.Socket[] winsocks = new System.Net.Sockets.Socket[10];



并通过索引访问它。 />


或者更好,使用套接字列表,这样你就可以添加和删除它们。



我可以'如果没有你的代码,请告诉你其他任何事情,希望它有所帮助。


and access it by it index.

Or better,use a list of sockets so you can add and remove them dinamically.

I can't tell you anything else without seing your code,hope it helps.


这篇关于对于winsock控件的c#窗体中,vb6的winsock控件的Index属性等价的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 13:10