Exclamation[HELP] Listview!

Posts 110 of 10 · Page 1 of 1
[HELP] Listview!
Hi guys.

I am making a MMORPG List in Visual Basic and I wanted some help.



I want that when I click right click then click "Overview" on the selected item, it shows like another form containing the review.

Any ideas?

Thanks!
So what is your question?

Create a new form. Pass the string to the new form. Display it in the new form.
Where are you getting the reviews from?
you mean on click on review a form open and some description on the game
Code:
For Each Item As ListViewItem In ListView1.SelectedItems
            If Item.ToString = "ListViewItem: {LineAge}" Then
                LineAgeRev.Show()
            End If
        Next
@ blubb : yeah lol i didn't think i made it fast
Quote Originally Posted by T0P-CENT View Post
you mean on click on review a form open and some description on the game
Code:
For Each Item As ListViewItem In ListView1.SelectedItems
            If Item.ToString = "ListViewItem: {LineAge}" Then
                LineAgeRev.Show()
            End If
        Next
You want to do that for each entry...?

Just pass the string to the new form and decide there...
Thanks guys, I'll try that when I get home.

Don't worry, i'll post credits to the owner who made all the reviews.
What about just adding a parameter to the "New" sub procedure in your other form and pass the current listviewitem as the parameter?

I.e on you're new form

[highlight=vb]
Private curItem As ListViewItem

Sub New(ByVal lvItem As ListViewItem)
Me.InitializeComponent()
Me.curItem = lvItem
End Sub
[/highlight]
#1, how did you get that right-click thing for that?

#2, use the simplest code:

*.show()
Quote Originally Posted by o0OpurezO0o View Post


#2, use the simplest code:

*.show()
I think he wants the form to show containing the relevant information, so just showing the form won't be enough
Quote Originally Posted by o0OpurezO0o View Post
#1, how did you get that right-click thing for that?


Add a ContextMenuStrip.

Select your listview and edit the "ContextMenuStrip" property and select your cms.
Posts 110 of 10 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?