Hi everyone, I found an awesome Code by Paul how to navigate by DoubleClick using the SubItems in the ListView,,, But I cant make it fit in my project.
So Basicly my project is getting all the usernames from the website in a ListView, and and I simply want to make a DoubleClick Event in my ListView to Navigate using the Usernames to their profiles with my WebBrowser... And below is the code that I found, but I cant make it work... what am I missing?
So the {0} should be replaced with the Text in my ListView....... And the text in my listview is simply the usernames that I wanna navigate to.
Thank you very much in advance.. I cant wait to see your responses,,,
So Basicly my project is getting all the usernames from the website in a ListView, and and I simply want to make a DoubleClick Event in my ListView to Navigate using the Usernames to their profiles with my WebBrowser... And below is the code that I found, but I cant make it work... what am I missing?
Code:
Dim lvi As ListViewItem = ListView1.HitTest(e.Location).Item
If lvi IsNot Nothing Then
Form4.WebBrowser1.Navigate(String.Formt("http://www.site.com/users/{0}/index.php", SubItems.Text))
End If
End Sub
Thank you very much in advance.. I cant wait to see your responses,,,