Change the Internet Explorer Window Title in C#

I

imad.sabonji

HI

I am using Visual Studio.Net 2003 and using C#

I would like to know how is it possible to change the Internet
explorer window title?

ie. i want to get rid of "Microsot Internet Explorer" that appears
after my application name on the title bar and if possible, get rid of
the IE logo at the start of the address bar.
 
M

Mattias Sjögren

I am using Visual Studio.Net 2003 and using C#
I would like to know how is it possible to change the Internet
explorer window title?

ie. i want to get rid of "Microsot Internet Explorer" that appears
after my application name on the title bar and if possible, get rid of
the IE logo at the start of the address bar.

Some web sites insert a bunch of spaces after their <title> to push
the "- Microosft Internet Explorer" text way out to the right. But of
course that's not very reliable if you don't know the client's screen
width.

I don't think there's any way to remove the icon. There are reasons
(especially related to security) why web apps aren't allowed to
customize too much of the browser outside the page area. If people can
make a web browser window look like something else, it will certainly
be abused.


Since you're posting to the Windows Forms group, is it an option to
create your own client application that hosts the Web Browser control?
Then you have full control over the title bar.


Mattias
 
G

Guest

You can replace the icon with your own by using the link tag with the type as
icon.

e.g.
<link rel="shortcut icon" href="/images/h22.gif">

HTH
 
M

Mattias Sjögren

You can replace the icon with your own by using the link tag with the type as
icon.

e.g.
<link rel="shortcut icon" href="/images/h22.gif">


In my browser that specifies the icon in the address bar, not the
title bar.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top