control arrays

C

cj

I'm using socketwrench to create a server application that needs to
handle multiple connections. The examples, at least the one I
understand, is in VB6 and does this via a control arrays. .Net does not
support control control arrays. Can someone point me to a very simple
example of how to do that in .Net?

The VB6 example I mention can be found at
http://www.catalyst.com/support/help/wrench4/index.html
search for "Tutorial"
 
H

Herfried K. Wagner [MVP]

cj said:
I'm using socketwrench to create a server application that needs to
handle multiple connections.

Which type of connections? Maybe you are looking for 'System.Net.Sockets'.
 
C

Cor Ligthert [MVP]

cj,
understand, is in VB6 and does this via a control arrays. .Net does not
support control control arrays. Can someone point me to a very simple
example of how to do that in .Net?
Just for the record.

Net has not the strange VB6 FormControlArray it has for every control a
collection of controls including the Form what is as well a control.

Cor
 
C

cj

What type of connections. Humm, well I guess tcp/ip is the correct
answer. I'm not really sure what kinds of connections there are. I'm
to listen on a port, say 7000. Clients will be sending me strings
something like "EBI;REQ;PIN=345876" ended with a CR LF. I will take the
strings do some lookups and calculations and finally return to the
client a string like "EBI;RSP;PIN=345876;CODE=1" ended with a CR LF.

I was given socketwrench to use and actually asked to write this in
Visual FoxPro. But first I need to figure out how to do the program in
any language. The only examples of how to use socketwrench in this type
of situation that I understand are in VB6. I don't even have VB6
installed any more--actually never used it, I last used VB4.

Any suggestions on how to tackle this project?
 
J

Jeffrey Tan[MSFT]

Hi cj,

I think what "Cor Ligthert [MVP]" talked about is that in .Net winform, all
the controls on the form are added into Form.Controls property, so we can
loop through all the controls on the form through this property. Each
control also has a Controls property, so it can host another level of child
controls, then we should do the loop recursively.

Additionally, have you read the "Getting Back Your Visual Basic 6.0
Goodies" provided by "Ken Tucker [MVP]" in this post? I think it will give
some more information regarding what you want.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
C

cj

Thanks for the explanation.

I looked at "Getting Back..." some.

I'm moving a little slow on this now, I appreciate the help an will get
back to you.
 
C

cj

I'll take a look at the link but I'm moving a little slow on this now.

I appreciate your help.
 
J

Jeffrey Tan[MSFT]

Ok, if you need further help, please feel free to post. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top