the listbox raises the mousedown event and you only have to attach an event handler. you don't know how to do it? you should read about events in c#.