I have a question if I want to send a multiple text boxes from client program to the server program, how can I do that?
For example, I have 5 text boxes in a client program named, txtIP, txtPort, txtFirstName, txtLastName, and txtTitle. I want to send all of them to the server program and let the server program show the same text boxes in txtIP, txtPort, txtFirstName, txtLastName, and txtTitle.
I have found some client/server program that send message from one text box to another text box like chat program, but not different text boxes.
The code works great. Now, may I ask you another question. If I want the separate the txtIP into 4 different text boxes. You know like a ip address form. The txtIP(0), txtIP(1), txtIP(2), and txtIP(3) will contain only the number from 0 to 255 and. How can I do that?
I am working on the client/server programs that you wrote and modified to the way I need them to be due to the requirement for my project. I managed to get the txtIP work like the way I wanted (just like your suggestion).
I would like for you to take a look at my program and help me, if you don't mind. But I don't know how to attach the file.
Basically, what I need to do is to send a packet from the client to the server. But before sending, I need to calculate the crc checksum first and send it. I got this part working o.k., I think.
But the other requirement is to change the first letter in the Last Name field to "Z" (Bill -> Zill) and calculate again which will be an error packet, then resend it again by using cmdSendError button. And this error packet will display on the server program on the txtError field.
Also I need to change the packet number every time I send the packet.
Would you please help me? I will really appreciate very much.
Here is the requirement.
The client program must have a button on calculate and display the crc32 of the message (in hexadecimal) without actual transmitting the message. The second button will transmit the message, along with updating the crc32 value in hexadecimal on the client screen, and displaying the packet number that is sent. The client mush generate a correct crc32 checksum calculation as used by WinZip, PKZip, and the ethernet standard.
The packet number display must start at count 0 and increment with each message sent.
A button mush be provided to send an error message after the crc32 checksum has been calculated. This may be accomplished by changing the first letter in the Last Name field to Z after the crc32 checksum has been calculated.
Only one character for gender (M or F).
GPA must have two number after the decimal point (i.e. 3.95)