|
-
Feb 13th, 2007, 12:47 PM
#1
Thread Starter
Addicted Member
Prevent dragging from webbrowser
Hi,
I am using a webbrowser control to display a page, and I'm looking for a way to prevent the user from being able to drag a link/picture etc. from the webbrowser control to somewhere else (eg. desktop).
I searched through the forum and Kzin asked a similar question back in 2002, but didn't get an answer.
Anyone got any ideas?
Cheers,
Nap
-
Feb 13th, 2007, 03:39 PM
#2
Re: Prevent dragging from webbrowser
Easy one 
add a reference to the Microsoft HTML Object Library
VB Code:
Dim WithEvents HTML As HTMLDocument
Private Sub Form_Load()
WebBrowser1.Navigate "http://www.google.com"
End Sub
Private Function HTML_ondragstart() As Boolean
HTML_ondragstart = False
End Function
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If (pDisp Is WebBrowser1.Application) Then
Set HTML = WebBrowser1.Document
End If
End Sub
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Feb 16th, 2007, 04:39 PM
#3
Thread Starter
Addicted Member
Re: Prevent dragging from webbrowser
Static,
As you said, easy.
Thnx.
Cheers,
Nap
-
Feb 16th, 2007, 04:48 PM
#4
Re: Prevent dragging from webbrowser
lol
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|