ListBox Code to ListView!
Ahh, my mistake.
[php]
If not lvItem is nothing then
Dim str As String = Web.DownloadString("")
If lvIndex = ListView1.Items.Count - 1 Then
Dim x1 As Integer = str.IndexOf(lvItem.Text, 0) + lvItem.Text.Length + 1
Dim MJ As String = Mid(str, x1).Trim
TextBox1.Text = MJ
Else
Dim x1 As Integer = str.IndexOf(lvItem.Text, 0) + lvItem.Text.Length + 1
Dim x2 As Integer = str.IndexOf(ListView1.Items(lvIndex + 1).Text, x1) + 1
Dim MJ As String = Mid(str, x1, x2 - x1).Trim
TextBox1.Text = MJ
End If
End if
[/php]
Should probably fix it up. I didn't actually test any of this, just wrote it out in my reply haha. Forgot to select the text property.
[php]
If not lvItem is nothing then
Dim str As String = Web.DownloadString("")
If lvIndex = ListView1.Items.Count - 1 Then
Dim x1 As Integer = str.IndexOf(lvItem.Text, 0) + lvItem.Text.Length + 1
Dim MJ As String = Mid(str, x1).Trim
TextBox1.Text = MJ
Else
Dim x1 As Integer = str.IndexOf(lvItem.Text, 0) + lvItem.Text.Length + 1
Dim x2 As Integer = str.IndexOf(ListView1.Items(lvIndex + 1).Text, x1) + 1
Dim MJ As String = Mid(str, x1, x2 - x1).Trim
TextBox1.Text = MJ
End If
End if
[/php]
Should probably fix it up. I didn't actually test any of this, just wrote it out in my reply haha. Forgot to select the text property.
Maybe I shouldn't leave 
Change listview1 to your listview name,
Should work, That's one of those MSDN Standards

Code:
Private Sub ListView_SelectedIndexChanged(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles Listview1.SelectedIndexChanged
Dim SelectedItems As ListView.SelectedListViewItemCollection = _
CType(sender, ListView).SelectedItems
If (SelectedItems.Count > 0) Then
' What you want to happen here
' In your case, MJ yada yada
Else
'Yada yada
End If
End Sub
Should work, That's one of those MSDN Standards

This thread is closed for replies.
Similar Threads
Visual Basic Programming[Help] Code for ListBox
5 Visual Basic ProgrammingCode for Injector; Importing DLL into Listbox
5 Visual Basic Programming[Help]adding items to the listview code
7 Visual Basic Programming[Code] Filling ComboBox/ListBox with every exe inside the application folder[Solved]
4 WarRock - International Hacksa Couple WPE Weapon codes?
16

