G
Gravity
Hi,
As the title indicated, any ideas?
Basically I want to have a EditBox to enter network port number. I had using
convertion from text to number, but the results messed up with the following
codes;
Byte[] f_bytePort = System.Text.Encoding.ASCII.GetBytes(textBox_Port.Text);
Int32 Port;
Port = BitConverter.ToInt32(f_bytePort, 0);
Anyone know why I got messed up results?
Anyway, if there is a numericBox, then everything is solved.
As the title indicated, any ideas?
Basically I want to have a EditBox to enter network port number. I had using
convertion from text to number, but the results messed up with the following
codes;
Byte[] f_bytePort = System.Text.Encoding.ASCII.GetBytes(textBox_Port.Text);
Int32 Port;
Port = BitConverter.ToInt32(f_bytePort, 0);
Anyone know why I got messed up results?
Anyway, if there is a numericBox, then everything is solved.