Looks like a small bug in the listview when you have it on a modal form. The initial display of the modal form does not show the selected listviewitem
here is some trivial code in a popup form to show the issue:
listView1.Items.Selected = true;
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
this.label2.Text = “Current selected item: “ + this.listView1.SelectedItems.Text;
When the form is shown, the listview does not show any row selected even though the listview.selectedItems.count is > 0.
Please login first to submit.