Re: security setting for web browser control
- From: "Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Dec 2006 11:04:21 -0800
"Crevit" <a@a> wrote in message
news:eYQn$TfJHHA.1248@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,
How I can to set security properties for web browser control?
Thanks in advance
Crevit
There doesn't seem to be any security properties... what is it you're trying
to secure?
You can prevent people from going to specific sites easily enough.
'=============
Private Sub Command1_Click()
Call WebBrowser1.Navigate2("http://www.microsoft.com")
End Sub
Private Sub Form_Load()
Call WebBrowser1.Navigate2("http://www.vbsight.com")
End Sub
Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, _
URL As Variant, _
Flags As Variant, _
TargetFrameName As Variant, _
PostData As Variant, _
Headers As Variant, _
Cancel As Boolean)
Debug.Print URL
If LCase$(Left$(URL, 25)) = "http://www.microsoft.com/" Then
Me.Caption = "Can't go there " & Timer
Cancel = True
End If
End Sub
'=============
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
.
- Follow-Ups:
- Re: security setting for web browser control
- From: Crevit
- Re: security setting for web browser control
- References:
- security setting for web browser control
- From: Crevit
- security setting for web browser control
- Prev by Date: security setting for web browser control
- Next by Date: Re: security setting for web browser control
- Previous by thread: security setting for web browser control
- Next by thread: Re: security setting for web browser control
- Index(es):
Relevant Pages
|