You might want to try and use the mscomm control supplied with VB it has methods for opening, closing and writing to com ports.