I used serial port activex inside vs.net IDE
and wrote this code:
SerialPort1.BaudRate = 19200
SerialPort1.PortName = "COM7"
SerialPort1.Handshake = IO.Ports.Handshake.None
SerialPort1.DataBits = 8
SerialPort1.Parity = IO.Ports.Parity.None
SerialPort1.Open()
SerialPort1.Write("hello" & vbCrLf)
SerialPort1.Close()
but when code tries to run SerialPort1.Write("hello" & vbCrLf)
it causes an exception in win ce!