Serial RX-Flag without DataReceived


Is there a possibility that you can manually query the RX-Flag?
Currently I use the DataReceived method, but I have the impression that they do not always receive the data.

When done correctly, the dataReceived event should not lose data. If you are having difficulties, reduce your code to the smallest sample that displays the problem and post it here.

If you want want to know how many bytes are ready to read in the internal serial port buffer, use the BytesToRead property documented in SerialPort Members | Microsoft Learn.

Ok thanks. The problem was the transmitter.