March 19th, 2011, 03:00 AM
In reference to :
I'm new to VB.NET and came across the same issue. Were you able to solve making the form size grater than the...
February 3rd, 2011, 11:09 PM
I found the answer and got it working ....
By default, SerialPort uses ASCIIEncoding to encode the characters. ASCIIEncoding encodes...
February 3rd, 2011, 12:05 PM
I did this:
Dim Port As SerialPort = New SerialPort("COM1", 9600, Parity.Odd, 8, StopBits.One)
Port.Write(System.Convert.ToByte(&H2B) & _
System.Convert.ToByte(&H4) & _...
February 3rd, 2011, 11:51 AM
yes you are right ToChar() works on 8 bit values and I need to convert values grater than FF into characters.
February 3rd, 2011, 11:26 AM
it needs be all characters
February 3rd, 2011, 03:54 AM
I found something interesting.
when I convert a number using System.Convert.ToChar(X) and sends it through serial the X can only be hex: 0 to hex:3F if I want to get the correct value from the...
February 3rd, 2011, 02:50 AM
I don't think I can do that.
I think there is a difference in the new .NET control itself
February 2nd, 2011, 11:44 PM
What do you mean by create hex?
is it like this?
Port.Write(System.Convert.ToChar(Hex(42)) & _
System.Convert.ToChar(Hex(4)) & _
February 2nd, 2011, 10:54 PM
I'm new to .NET. I have an application that is running in VB6. It sends text through COM1 port to another device.
When I converted the VB6 code to .NET the string it sends out is...