Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27405

How to create a (DoubleClick) event using "Text" inside a ListView with WebBrowser?

$
0
0
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?

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

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,,,

Viewing all articles
Browse latest Browse all 27405

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>