If your project is Asp.Net and you fill your listBox control in page load event, just put this control:
if(!IspostBack)
this.LoadListBox(); //your fill method
Because, when you post the page, page load event trig and fill your listBox again. So your selection is clearing.