TWebBrowser and IE9

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);
  if (securelockicon = secureLockIconUnsecure) then

Open in new window

Since upgrading to IE9 the component always returns secureLockIconUnsecure.  Is there a workaround for fix for this?
Who is Participating?
jimyXConnect With a Mentor Commented:
You can set all those options by using the Windows Registry:

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.
In the IE there are some settings that you can change which will make the SecureLock disappear:

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:
DSOMAuthor Commented:
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.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.