private void LstBoxBlocked_Click(object sender, EventArgs e) { try { TxtBoxURL.Clear(); foreach (string item in LstBoxBlocked.SelectedItems) { TxtBoxURL.AppendText(Environment.NewLine + item); } TxtBoxURL.Text = TrimStart(TxtBoxURL.Text, Environment.NewLine); } catch { } }