private void btnClearSelected_Click(object sender, EventArgs e) { lstBox.ClearSelected(); }
private void Form1_Load(object sender, EventArgs e) { lstBox.ClearSelected(); }In both examples, we call the ClearSelected method on the ListBox control to clear the selected items.