How do you get the WebBrowser's Url in a Combobox? I've tried the Url member but it says "Value of type 'System.Windows.Forms.WebBrowser' cannot be converted to 'String'." I also tried the LocationURL member also but it was in VB6 and not VB.NET. Please help me. Thanks in advance

Recommended Answers

Jump to Post

like.. http://www.google.com to your combobox?

Jump to Post

All 5 Replies


Hi artemix22,
I wanted to have the combobox to have the text of the webbrowser's url and not to add it to the combobox.

try Combobox1.Text = webBrowser1.Url.ToString()

Thank You vey much for your contribution artemix22 and tinsaafl.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.