Thursday, July 30, 2009

How to write to the serial port using Visual Basic 6?

Please help me in this.





I want to write a simple program using VB 6 When the user clicks on a button, a particular bitstream is generated, and it will be sent to the serial port.





Can anyone tell me how to do this with VB 6?

How to write to the serial port using Visual Basic 6?
Go to the Add Controls and add the Comm object.


Drag it to the form (it will look like an old style phone)


Use the methods like


Comm1.Open


Comm1.Write


Comm1.Read


etc


No comments:

Post a Comment