So I want to select a row from the listview1 and write a popup and this is the method which worked for me but are there any other ways to do this they might help me in the future :)
for (int x = 0; x < listview1.Items.Count; x++) if (listview1.Items[x].Selected) MessageBox.Show(listview1.Items[x].SubItems[1].Text);
Also I dont really understand the function of the line .SubItems[1] why is this necessary


Sign In
Create Account


Back to top









