Reputation: 547
How can i JUST find out if any item in my listview has been double clicked ? ( not just clicked/one click )
I dont need to raise an action ( I dont want to use list_view1_ mouse double clicked )
Well,in my form there is an update button,so if any item has been double clicked I want to let the user proceed to another form,otherwise a message comes up and remind him to doubleClick on either of them items in list view
EXAMPLE) in my button 3 when user clicks:
if (listView1.SelectedItems.Count > 0 && **listView1_DoubleClicked**)
{
Form3 f3 = new Form3(mod, indexAppChange);
}
else messagebox.show(" double click on an item");
Upvotes: 0
Views: 1352
Reputation: 11844
You can find out by using MouseDoubleClick event.
private void listView1_MouseDoubleClick(object sender, MouseEventArgs e)
{
}
The above event will fire when any item in listview is double clicked....
Upvotes: 1