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!!
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!!
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:
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.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)