VB using winsock control for the client, the client every two seconds to send different commands to the device, and, in turn, receiving A return of data, such as sending A, then the return A1; Send B, return to B1,,, can you tell me how to store the received data, respectively, to a different location, such as Text1=A1, Text2=B1? The younger brother of winsock first contact, don't quite understand what to get, thank you very much,
CodePudding user response:
Top up ah, there is no master to answer it for me?
CodePudding user response:
New TextBox, named as Texts, and set the attribute Index of 0
Then you can in your code:
Dim As Long I 'global variables, in the Form_Load initialized to 1
The Load Texts (I) 'new to create a TextBox
Texts (I). The Top=Texts (I - 1). On the Top + 40 x 15 'in a TextBox below
Texts (I). The Text=Value 'a return Value of the
i=i+1