|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
control arraysI'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" Hi,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet05132003.asp http://www.windowsforms.com/default.aspx?tabindex=6&tabid=47&ItemID=16&mid=142 Ken ------------------ Show quoteHide quote "cj" <cj@nospam.nospam> wrote in message news:OwOirS7FGHA.1452@TK2MSFTNGP11.phx.gbl... > 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" "cj" <cj@nospam.nospam> schrieb: Which type of connections? Maybe you are looking for 'System.Net.Sockets'.> I'm using socketwrench to create a server application that needs to > handle multiple connections. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> 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? Herfried K. Wagner [MVP] wrote: Show quoteHide quote > "cj" <cj@nospam.nospam> schrieb: >> 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'. > cj,
> understand, is in VB6 and does this via a control arrays. .Net does not Just for the record.> support control control arrays. Can someone point me to a very simple > example of how to do that in .Net? > 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 Cor,
Sorry, I don't understand what your saying. Cor Ligthert [MVP] wrote: Show quoteHide quote > 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 > > > 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. 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. Jeffrey Tan[MSFT] wrote: Show quoteHide quote > 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. > 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. CJ,
I see that I missed to paste the link and missed your reply http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolcontrolcollectionclasstopic.asp I hope this makes it more understandable Cor I'll take a look at the link but I'm moving a little slow on this now.
I appreciate your help. Cor Ligthert [MVP] wrote: Show quoteHide quote > CJ, > > I see that I missed to paste the link and missed your reply > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolcontrolcollectionclasstopic.asp > > I hope this makes it more understandable > > Cor > >
VS2003 to VS2005 Conversion
Put standard output into file Spell checker howto make a console app start with window minimized How can you add a custom user control to a datagridview? modal dialog box Running app on Shared Drive Pointer in a structure Export from VB.NET 2003 to an Excel spreadsheet DataGridView... defaults to DataGridViewTextBoxColumn |
|||||||||||||||||||||||