///
/// ListView1 Mouse Double Click Event
///
///
///
private void listView1_MouseDoubleClick(object sender, MouseEventArgs e)
{
// Get ListViewItem
ListViewItem lvi = listView1.GetItemAt(e.X, e.Y);
// If Item Exists at this point
if (lvi != null)
{
// Do Anything with the ListView Item Selected, such as passing values to edit form etc.
Form2 f = new Form2(lvi);
f.ShowDialog();
}
}
|