string addrStr = comboBoxIPaddress.Text.Substring(0, comboBoxIPaddress.Text.IndexOf("."));
int sampleIP = 0;
int.TryParse(addrStr, out sampleIP);
That seams to work for me, I'm getting the correct sampleIP from "out sampleIP" in the int.TryParse method.
I will get an error when I comment out the :
udpClientRx.Client.Bind(new IPEndPoint(IPAddress.Any, UdpRxPort));
And, after studying this, I think it might be that I'm setting up a listener but the Microsoft code examples for send and receive work well with out the "Bind"'s.
Very confused at this point......