here is the code without the HostToNetworkOrder conversion:
blTempArray = BitConverter.GetBytes(Convert.ToSingle(txtNomThick.Text));
Whenever i put in the IPaddress.HostToNetworkOrder() method it says it has some invalid arguments. It only accepts values of type Long, Short, and Int. How can i get around this problem?
DalePosted Aug 2, 2006, 1:44 PM
byte
[] blTempArray = new byte[4];Single slTextBox = Convert.ToSingle(spTextBox);
Int32 ilTextBox = (Int32) slTextBox;
ilTextBox = System.Net.IPAddress.HostToNetworkOrder(ilTextBox);
blTempArray = BitConverter.GetBytes(ilTextBox);