Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

ListBox Double click on selected item C#

$
0
0
Hi there everyone!

Quick (and not so quick i think) question.

I have a listbox, that displays items retrieved by a SQL query on an Access Database.

What i want to do is control the way double-click behaves inside the listBox. 

So, if i double click an item, only THEN something will happen. But for example, if i have 5 items, and space for another 5 items, if i double click the empty spaces nothing will.

How do i do that?


I hope i have explained myself right....if not, ill be more than glad to give it another try.


Thx in advance!

Viewing all articles
Browse latest Browse all 12583

Trending Articles