Results 1 to 2 of 2

Thread: dragging the text from the address bar in IE into a text box in a VB project

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    95

    Post dragging the text from the address bar in IE into a text box in a VB project

    Hello again..
    How can I drag the text from the address bar in IE right into a textbox in a Visual Basic project?

    Thanks in advance!!

  2. #2
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    Post

    Me again.

    That's easy. Set the Textbox's OLEDragMode to 1 - Automatic and OLEDropMode to 1 - Manual.

    Then, put the following code in the program:
    Code:
    Private Sub Text1_OLEDragDrop(Data As DataObject, Effect As Long, _
    Button As Integer, Shift As Integer, _
    X As Single, Y As Single)
    Text1 = Data.GetData(1)
    there you have it! However, to drag a URL from MSIE you have to select it in the addressbar, and the drag from the small icon on the left.

    r0ach™
    Don't forget to rate the post

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