private void jpegListView_DoubleClick(object sender, EventArgs e) { ListView lv = sender as ListView; ListViewItem item = lv.SelectedItems[0]; JPEGFileItem jpegItem = item.Tag as JPEGFileItem; PreViewForm pv = new PreViewForm(jpegItem); pv.ShowDialog(this); }