The objective is that in a cheboxlistbox the elements of a textbox are added, these are marked and then I can select and delete these elements of the checboxlistbox. In the checklistbox I must add items to the list, and when they are added, they appear marked and in addition I can select items from the list and delete the selected item. in the image would be the elements in the lower left. This is the code to add items to the checklistbox
private void btañadir_Click(object sender, EventArgs e)
{
if (txtañadir.Text == "")
{
MessageBox.Show("Ha de rellenar el formulario.");
}
else
{
clbidiomas.Items.Add(txtañadir);
MessageBox.Show("Los datos se han añadido correctamente.");
}
}
and this is the delete code (in which I have not implemented anything)
private void btborrar_Click(object sender, EventArgs e)
{
}