private void ServerPort_Leave(object sender, EventArgs e) { if (!IsPortValid()) { ServerPort.Focus(); } }
// Method: RunServer_Click() // Description: This method brings the Server panel, where user gets to enter the // port, to the front and focuses on ServerPort textbox. private void RunServer_Click(object sender, EventArgs e) { StartServerPanel.BringToFront(); ServerPort.Focus(); }