Solved

TWebBrowser and IE9

Posted on 2011-03-23
5
744 Views
Last Modified: 2012-06-27
I've been using very simple code in my program to either show a lock or unlock graphic when a web page is loaded.

procedure Tform.WebBrowser1SetSecureLockIcon(ASender: TObject;
  SecureLockIcon: Integer);
begin
  if (securelockicon = secureLockIconUnsecure) then
      unlock.Visible:=true
     else
      lock.Visible:=true;
end;

Open in new window


Since upgrading to IE9 the component always returns secureLockIconUnsecure.  Is there a workaround for fix for this?
0
Comment
Question by:DSOM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 24

Expert Comment

by:jimyX
ID: 35205688
In the IE there are some settings that you can change which will make the SecureLock disappear:
http://www.todayinwindows.com/2011/02/remove-those-only-secure-content-is-displayed-popups-in-internet-explorer/

Did you check the Security Settings whether you are disabling/enabling one or more of the options that do this?

In the IE it can be easily solved by reset the settings:
http://windows.microsoft.com/en-NZ/windows7/Change-Internet-Explorer-9-Security-settings
0
 

Author Comment

by:DSOM
ID: 35206810
Unfortunately, these steps would need to be completed by hundreds of customers to be effective.  I was hoping there was a programmatic setting related to TWebBrowser.  For now I have simply removed the lock/unlock function.
0
 
LVL 24

Accepted Solution

by:
jimyX earned 500 total points
ID: 35208769
You can set all those options by using the Windows Registry:
http://support.microsoft.com/kb/182569

I am using Windows XP (I am sure you are using Win 7, so the should be similar), so it is under:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3

For example to change the value of "Display mixed content", set the DWORD Value "1609" as follows:
0 = Enabled
1 = Prompt
2 = NON-Selected
3 = Disable

So the idea is to set the registry by your application.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 35452389
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question