iPortNo = int.Parse(txtPort.Text);
>// Define the port number variable >int iPortNo = 0; > >// Read in the port number from the textbox >iPortNo = (int)txtPort.Text; >