Quote Originally Posted by dhell
thanks for reply cdrive,
I'm not allowed even 1 component to do the code. but I think it is make sense because I can send "hello world" string to my serial device, the code is in my previous post. And it works 100 %.
I'm sorry but correct me if I'm wrong, components are build from VB code too, right? so if it works with component, if I write the code (code to make the components) from the component manually, it sure will work too? correct?
Thanks anyway, I'm still hoping someone could help me
Well, I don't know why you think you're building controls with the code you posted. What you're doing is treating the serial port as a File. While your code does output data from the serial port I don't see how your going to have any flow control or any of the necessary properties required for practical serial com. I did find your code novel though. I don't find it very practical though, except as an exercise. Doogle has expertise with serial com. Perhaps he can help you. He usually answers comm questions.

Btw, if it works 100% of the time then what is your problem?