4
Reply

Navigating Webbrowser to Listview item C#

Nail Yener

Nail Yener

Mar 23 2010 4:39 AM
5.2k
Hi,

I am working on a small application which has a listview and webbrowser control. I have a list of URLs in the first column of the list view and I want the webbrowser to navigate to that URL once the item in the listview is clicked, is this possible?

I am trying something like

 private void listView1_SelectedIndexChanged(object sender, EventArgs e)
        {
           webBrowser1
.Navigate(new Uri(listView1.SelectedItem.ToString()));
       
}


Answers (4)