Hiho. I was reading in the .NET help file about the elimination of Control Arrays. Not a bad way to do it, but with the new system, I can't figure out how to do something I found easy in vb6:
Dynamically load and deal with controls. For example, in VB6:
VB Code:
Private Sub sckData_DataArrival(Index as Integer, bytesTotal as Long) sckData(Index).Foo() End Sub
Then unlimited connections could be handled. However, in VB.NET, I would need to do something like this:
VB Code:
Private Sub sckData_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles sckData1.DataArrival, sckData2.DataArrival, sckData3.DataArrival '..... sender.Foo() End Sub
If I don't know how many controls I will have at runtime, how am I to handle their events?
