Ok, here's what im trying to accomplish. There's a text box. There's a button. There's a winsock control. The user types in an amount of bytes into the text box. (Like in CMD, with the 'ping' function. Nothing special, just raw bytes) The user presses the button, and with amount of raw bytes are sent to the remote host via winsock. Ive tried converting string to bytes, but that just sends the amount of bytes in that string. Not the integer amount. Any ideas? Thanks.