vb Code:
  1. Winsock1.SendData String$(Text1.Text, "A")

If you typed 4 into the TextBox it would send "AAAA".