i dont know why you said i should not use TextWriter. i think i should clarify my question.for example i want to contorl the color of a RGB common cathode led. but in the following image, the code for button red works but the code for seekbar does not work. we send data to module by the TextWriter. i dont understand your code:
Dim s As String = YourIntVariable
astream.WriteBytes(s.GetBytes("UTF8"))
what should i do then?