Results 1 to 6 of 6

Thread: Difficult Webbrowser question

  1. #1

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611

    Difficult Webbrowser question

    How do I stop users dragging links from a webbrowser control running under VB6 into word?

  2. #2

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Come on No-one seems to be able to answer th difficult ones on VBF any more

  3. #3

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    bump
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  4. #4
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    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.

  5. #5

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    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.

  6. #6

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Still unresolved!
    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
  •  



Click Here to Expand Forum to Full Width