Hi.
I'm trying to make a web browser as a project over the summer holidays. It has been going well so far, but I've hit a snag. I'm trying to make it display a padlock symbol when the website is encrypted, and a open padlock symbol when the website is unencrypted. Here is the code I have got so far:
CODE
Private Sub webBrowser_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles webBrowser.DocumentCompleted
If WebBrowserEncryptionLevel.Bit128 = 1 Then
tsslSecure.Visible = 1
tsslInsecure.Visible = 0
Else
tsslSecure.Visible = 0
tsslInsecure.Visible = 1
End If
End Sub
tsslSecure and tsslInsecure are the names of the secure and insecure icons. Anyway, my problem is that it is only displaying the insecure icon, never the secure one. What am I doing wrong? Please help.
Thanks in advance, and sorry if the solution is very simple. I'm just learning.