1,105,456 Community Members

WebBrowser1 Url in ComboBox1

Member Avatar
yuvjeeth
Newbie Poster
14 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
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

Member Avatar
artemix22
Junior Poster
111 posts since Jan 2012
Reputation Points: 4 [?]
Q&As Helped to Solve: 14 [?]
Skill Endorsements: 0 [?]
 
0
 
ComboBox1.Items.Add(WebBrowser1.Url.ToString)
Member Avatar
yuvjeeth
Newbie Poster
14 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
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.

Member Avatar
artemix22
Junior Poster
111 posts since Jan 2012
Reputation Points: 4 [?]
Q&As Helped to Solve: 14 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
tinstaafl
Postaholic
2,012 posts since Jun 2010
Reputation Points: 559 [?]
Q&As Helped to Solve: 403 [?]
Skill Endorsements: 36 [?]
 
0
 

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

Member Avatar
yuvjeeth
Newbie Poster
14 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Question Answered as of 9 Months 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