How do I stop users dragging links from a webbrowser control running under VB6 into word?
Printable View
How do I stop users dragging links from a webbrowser control running under VB6 into word?
Come on ;) No-one seems to be able to answer th difficult ones on VBF any more :(
bump
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.Quote:
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.
Still unresolved!