Click here to Skip to main content
13,048,406 members (102,483 online)
Rate this:
Please Sign up or sign in to vote.
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,
Posted 30-Sep-12 5:56am
Sergey Alexandrovich Kryukov 30-Sep-12 13:51pm
Web address (URI) or title? There are different things?
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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,
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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,

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 30 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100