Dim lByte As List(Of Byte) = New List(Of Byte) PrivateSub SerialPort1_DataReceived(ByVal sender AsObject, _ ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) _ Handles SerialPort1.DataReceived 'データ受信用のバイト配列 Dim inByte(SerialPort1.BytesToRead - 1) AsByte