[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

Problem with TWebBrowser component

I have created a program that contains a TWebBrowser component. On my computer and other PC's that I have tested on, everything works well, but in an environment where it is meant to be used, it seems to refuse to retrieve its information from my Internet database. I have tried to toggle the property RegisterAsBrowser, but this does not help. There is a suspicion that the firewall of the company in question has something to do with it, but I don't know. Is there a setting that I could use, or is there a workaround to be made - or do I have to require that the firewall is set in specific ways?
  • 3
  • 2
1 Solution
change the internet settings on the machine that you are using, to use the Proxy server (I assume you have one), once you set that it should ask you for a username/password when you run your application and should work fine after than, unless you are trying to use other ports for communicating
Eddie ShipmanAll-around developerCommented:
Without knowing more specifics about your setup, we can only guess.
haabAuthor Commented:
Well, I don't know about the setup, that's the problem. I thought the TWebBrowser would work as if it was the IE itself, but on one possible customer's PC it just refuses to go online.
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Eddie ShipmanAll-around developerCommented:
It should use IE's proxy settings if it has any because it is just a wrapper for IE's browser.
haabAuthor Commented:
It seems reasonable to do so, but how do I set these settings? Or, put in another way; where can I find documentation for the TWebBrowser component? Thank you this far; I hope I will be able to solve the problem soon.
Eddie ShipmanAll-around developerCommented:
It uses them automatically, you don't have to set anything.
To set them programatically, you have to find out how IE
sets them in the registry.

The values that configure the Internet proxy setup are
located in the key below. To change which proxy server is
used, modify the value of 'ProxyServer' to equal the
server and port combination. For example if your proxy
server was called \PROXY and it was running on port 80
then the setting would equal 'PROXY:80'.

You may also need to set the value of 'ProxyEnable' to
equal '1' for proxy enabled or '0' for disabled.
Setting the value of 'ProxyOverride' to equal '<local>'
will stop internal addresses from going through the

Changes should take effect immediately.

User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\
           CurrentVersion\Internet Settings]
Name: ProxyServer, ProxyEnable, ProxyOverride
Type: REG_SZ (String Value)
Value: Server:Port

The setting below allows you to change the scope of the
Internet proxy configuration and specify whether all
users should share system-wide or individual settings.

Create a new DWORD value, or modify the existing value
called 'ProxySettingsPerUser' using the settings below.
Exit your registry, you may need to restart or log out
of Windows for the change to take effect.

            Internet Settings]
Name: ProxySettingsPerUser
Value: (0 = whole machine, 1 = per user)

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now