I current testing eltima virtual serial port. I have some problem on how to get the font from the buffer.
Sample code from eltima.
Private Sub AxVSPortAx1_OnRxChar(ByVal sender As Object, ByVal e As AxVSPortLib._IVSPortAxEvents_OnRxCharEvent) Handles AxVSPortAx1.OnRxChar
Dim Buff() As Byte
Dim ReceivedCnt As Long
Buff = AxVSPortAx1.ReadArray(e.count)
ReceivedCnt = UBound(Buff) + 1
If ReceivedCnt <> 0 Then
AddLog(Convert.ToString(ReceivedCnt) & " byte(s) read ")
RecvBytes = RecvBytes + ReceivedCnt
lblReceive.Text = Convert.ToString(RecvBytes)
If Redirect Then
Private Function AddLogData(ByVal Buf() As Byte, ByVal Size As Long) As Integer
Dim i As Integer
For i = 0 To Size - 1
How could we know the Buf() is using what font & size?
I need this as alignment on screen may lost if wrong font applied.