1.11M Members

WebBrowser1 Url in ComboBox1

 
0
 

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

 
0
 
ComboBox1.Items.Add(WebBrowser1.Url.ToString)
 
0
 

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.

 
0
 

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

 
0
 

Wow!
Thank You vey much for your contribution artemix22 and tinsaafl.

Question Answered as of 1 Year Ago by artemix22 and tinstaafl
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article