private void Button_Add_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(TextBox1.Text)) return; ListViewItem item = new ListViewItem(TextBox1.Text); ListView1.Items.Add(item); TextBox1.Clear(); TextBox1.Focus(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)