Abualnassr

Hi.

I have a listview that gets it's data from a database. What i wanna do is i want the user when he doub click an item, a new form will be shown with detailed information about that clicked item.

Anyone can help



Re: Visual Basic Express Edition Listview item double click

Whoisit

If I understand your question, this is how I would do it.

Private Sub ListView_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.DoubleClick


FormDetailedInformation.Show

End Sub




Re: Visual Basic Express Edition Listview item double click

Abualnassr

Thanks for replying.

But how can i pass the variables to the new form





Re: Visual Basic Express Edition Listview item double click

Whoisit

Form2.DetailedInformation = Form1.Listview.ItemClickedOn




Re: Visual Basic Express Edition Listview item double click

Abualnassr

But where should i put this code

In the new detailed form or in the original form





Re: Visual Basic Express Edition Listview item double click

Whoisit

In the original form passing the detailed information to the the new form.

Form2.DetailedInformation = Form1.Listview.ItemClickedOn
Form2.Show






Re: Visual Basic Express Edition Listview item double click

Abualnassr

I don't know if i sayed what i need clearly.

I want when the user click an item inside the listview a new form pop up with detailed info about the clicked on item.

The listview items are pulled out from an access database, and it will be show as :

SN BLUE DESCRIPTION

1 12145 FORD EXPLORER

2 12592 TOYOTA CAMRY

3 12642 MAZDA 6

Now if any of the list view items are couble clicked, a new form should pop up with other info like year, user, plate number.

So, what do u suggest