|
-
Oct 22nd, 2002, 02:57 PM
#1
Thread Starter
Fanatic Member
Difficult Webbrowser question
How do I stop users dragging links from a webbrowser control running under VB6 into word?
-
Oct 23rd, 2002, 04:52 PM
#2
Thread Starter
Fanatic Member
Come on No-one seems to be able to answer th difficult ones on VBF any more
-
Oct 24th, 2002, 08:13 AM
#3
Thread Starter
Fanatic Member
 Looking for a friendly intelligent chat forum? Visit the white-hart.net 
-
Oct 24th, 2002, 09:25 AM
#4
Frenzied Member
No ideas, just guesses....
There are 3 possible answers to stopping a drag and dorp operation.
1. Don't allow the drag to start. Put code in the Webbrowser DragStart routines (if they exist) that nullifies what the user has selected. Make sure all DragDrops are set to None (if that is possible).
2. Prevent the drag in mid-operation. Is there a Windows sub-classing facility that will tell you if the user is dragging an item? Is there a Windows message that gets sent when a user is dragging something? Is the OLEstructure used in the drag operation accessible while the drag is taking place?
3. Prevent the drop. Put code in Word that nullifies what the user has selected (Data.Clear). Make sure all dragdrops are set to None(if any exist). Put code in the Word Drop routines that displays a message rather than drops a file.
As I say, I have no knowledge as to which of these, if any, will actually produce the result you want.
-
Oct 24th, 2002, 09:32 AM
#5
Thread Starter
Fanatic Member
Originally posted by JordanChris
No ideas, just guesses....
There are 3 possible answers to stopping a drag and dorp operation.
1. Don't allow the drag to start. Put code in the Webbrowser DragStart routines (if they exist) that nullifies what the user has selected. Make sure all DragDrops are set to None (if that is possible).
2. Prevent the drag in mid-operation. Is there a Windows sub-classing facility that will tell you if the user is dragging an item? Is there a Windows message that gets sent when a user is dragging something? Is the OLEstructure used in the drag operation accessible while the drag is taking place?
3. Prevent the drop. Put code in Word that nullifies what the user has selected (Data.Clear). Make sure all dragdrops are set to None(if any exist). Put code in the Word Drop routines that displays a message rather than drops a file.
As I say, I have no knowledge as to which of these, if any, will actually produce the result you want.
Thanks Chris (or is it Jordan?) - much appreciated. (1) would be best but I can't see how to do it at all. I was working on number three (Data.Clear) but unfortunately I don't have access to the user's copy of Word so it might not be the way to go.
-
Oct 25th, 2002, 05:39 AM
#6
Thread Starter
Fanatic Member
 Looking for a friendly intelligent chat forum? Visit the white-hart.net 
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
|