i want generate a click event in a list box without actually clicking.ie, through the program.

exact problem:
at the end of adding items in a listbox,i would like to eliminate multiple entries.
in my click event is the code for the same.can i generate a click event through code?