[RESOLVED] Am I allowed to click on a listview and have a form pop up?
Hey guys I have a listview called report.
Now I have a form called probdes.
Is there a way so when I click on a item in the listview, the prob des form pops up and whatever was in the first column of the row item I clicked on goes in label7, the second column row item goes in label8, and the third in label9, the fourth in label10, and the last in label11?
thank you!
Re: Am I allowed to click on a listview and have a form pop up?
Sure, just use the ListView1_DblClick() event.
Re: Am I allowed to click on a listview and have a form pop up?
alrighty then, but what format do I use to refer to the first listview column data for that row going in label7, and so on?
Re: Am I allowed to click on a listview and have a form pop up?
lv.SelectedItem.ListSubItems(0)
Re: Am I allowed to click on a listview and have a form pop up?
Alrighty then, but when I use THIS code.
probdes.Label7.Caption = Report.SelectedItem.ListSubItems(0)
I get an index out of bounds error highlighting it.
Re: Am I allowed to click on a listview and have a form pop up?
I'm sorry, it should be (1) and not (0).
Re: Am I allowed to click on a listview and have a form pop up?