I have a Matrix Orbital display that I've used with my VB6.0 app for several years now. Recently, I've begun upgrading my software to C#...
Anyway, in VB, I could use the following to send, say, a clear screen command to the display (control char + command).
Code:
CP = Chr$(&HFE)
MSComm.Output = CP & "X"
How would I create the 0xFE in C#? I'm using the same MSCOMM control in both systems. Obviously, this syntax won't work in C#.
I've tried things like sending FE as a string, and even converting it to various types of int and char - Int32.Parse("FE", NumberStyles.HexNumber);...
Any tips?