Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I don't thin this question has been asked before. How can I make the web adress title come onto the tab of my webbrowser in Visual Basic 2008? I tried to make at least the URL show up but it didn't work. I'm still kind of a beginner in this so maybe something not too complicated could help.
Thank you in advance,
dagronzzan
Posted
Comments
Sergey Alexandrovich Kryukov 30-Sep-12 13:51pm    
Web address (URI) or title? There are different things?
--SA
Sergey Alexandrovich Kryukov 30-Sep-12 13:53pm    
Also, what is the typs of WebBrowser, exactly? There are different types under this name (Forms, WPF, for example). At least provide a fully-qualified type name.
--SA

Please see my comment to the question — they are two different things. OK, you have a control in your UI to show title and URI. You also did not show exact type of the browser control you are using, so I'll answer in general terms.

You need to look at the control documentation and find appropriate properties. For example, with System.Windows.Forms.WebBrowser, you have the properties Url and DocumentTitle. If the title property is not available, you can find it out by looking the DOM of the document and finding the <title> element, which should be a child of the <head> element, which is in turn a child of the <html> document.

Good luck,
—SA
 
Share this answer
 
Dear Sergey Alexandrovich Kryukov,
I am sorry i did not put in the exact sepcifications. If anyone else wants to answer this question and wants more info, here it is.
I am using a GeckoFX WebBrowser and i have the tabs on top like google chrome. for the tab control i am using a custom MDI tabcontrol. it has the close button on each tab maybe that might be the problem? anyway thanks for answering my question. but its not what im looking for.
thank you,
dagronzzan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900