"Jerry Spence1" <je**********@somewhere.com> wrote in message
news:44*********************@ptn-nntp-reader01.plus.net...
How do I convert "192.168.0.200" (as type string) to MyIP (as type
IPAddress)?
Example (uses a textbox to enter the address, but you get the idea...
IPAddress OutAddr;
if (IPAddress.TryParse(textBox1.Text, out OutAddr) == false)
{
MessageBox.Show("Address is not valid!", "Error");
return;
}
else
{
MessageBox.Show(OutAddr.ToString());
}