Dim str As String = Web.DownloadString("")
If ListBox1.SelectedIndex = ListBox1.Items.Count - 1 Then
Dim x1 As Integer = str.IndexOf(ListBox1.SelectedItem, 0) + ListBox1.SelectedItem.ToString.Length + 1
Dim MJ As String = Mid(str, x1).Trim
TextBox1.Text = MJ
Else
Dim x1 As Integer = str.IndexOf(ListBox1.SelectedItem, 0) + ListBox1.SelectedItem.ToString.Length + 1
Dim x2 As Integer = str.IndexOf(ListBox1.Items(ListBox1.SelectedIndex + 1), x1) + 1
Dim MJ As String = Mid(str, x1, x2 - x1).Trim
TextBox1.Text = MJ
End If
Dim str As String = Web.DownloadString("")
If ListView1.SelectedIndex = ListView1.Items.Count - 1 Then
Dim x1 As Integer = str.IndexOf(ListView1.SelectedItem, 0) + ListView1.SelectedItem.ToString.Length + 1
Dim MJ As String = Mid(str, x1).Trim
TextBox1.Text = MJ
Else
Dim x1 As Integer = str.IndexOf(ListView1.SelectedItem, 0) + ListView1.SelectedItem.ToString.Length + 1
Dim x2 As Integer = str.IndexOf(ListBox1.Items(ListView1.SelectedIndex + 1), x1) + 1
Dim MJ As String = Mid(str, x1, x2 - x1).Trim
TextBox1.Text = MJ
End If
If n.SelectedIndices(0) = n.Items.Count - 1 Then
Dim x1 As Integer = str.IndexOf(ListView1.Selecteditems(0),0) + ListView1.Selecteditems(0).ToString.Length + 1
Dim MJ As String = Mid(str, x1).Trim
TextBox1.Text = MJ
Else
Dim x1 As Integer = str.IndexOf(ListView1.SelectedItems(0), 0) + ListView1.SelectedItems(0).ToString.Length + 1
Dim x2 As Integer = str.IndexOf(Listview1.Items(ListView1.SelectedIndices(0) + 1), x1) + 1
Dim MJ As String = Mid(str, x1, x2 - x1).Trim
TextBox1.Text = MJ
End If
Error 1 Overload resolution failed because no accessible 'IndexOf' can be called with these arguments:
'Public Function IndexOf(value As String, comparisonType As System.StringComparison) As Integer': Value of type 'System.Windows.Forms.ListViewItem' cannot be converted to 'String'.
'Public Function IndexOf(value As String, startIndex As Integer) As Integer': Value of type 'System.Windows.Forms.ListViewItem' cannot be converted to 'String'.
'Public Function IndexOf(value As Char, startIndex As Integer) As Integer': Value of type 'System.Windows.Forms.ListViewItem' cannot be converted to 'Char'.

Dim x2 As Integer = str.IndexOf(ListView1.Items(lvIndex + 1), x1) + 1
If n.SelectedIndices(0) = n.Items.Count - 1 Then
Dim x1 As Integer = str.IndexOf(lv.SelectedItems(0).Text, 0) + lv.SelectedItems(0).ToString.Length + 1
Dim MJ As String = Mid(str, x1).Trim
TextBox1.Text = MJ
Else
Dim x1 As Integer = str.IndexOf(lv.SelectedItems(0).Text, 0) + lv.SelectedItems(0).Text.ToString.Length + 1
Dim x2 As Integer = str.IndexOf(lv.SelectedItems(0).Text, x1) + 2
Dim MJ As String = Mid(str, x1, x2 - x1).Trim
TextBox1.Text = MJ
End If