[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.
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
Originally Posted by T0P-CENT 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]
Originally Posted by o0OpurezO0o #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
Originally Posted by o0OpurezO0o #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.