Click here to Skip to main content
11,802,439 members (72,257 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VB Visual-Studio VB.NET
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 at 30-Sep-12 13:51pm
Web address (URI) or title? There are different things?
Sergey Alexandrovich Kryukov at 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
0 OriginalGriff 465
1 KrunalRohit 366
2 F-ES Sitecore 295
3 Sergey Alexandrovich Kryukov 241
4 Afzaal Ahmad Zeeshan 230
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,645
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 30 Sep 2012
Copyright © CodeProject, 1999-2015
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