Click here to Skip to main content
12,068,141 members (49,429 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# Internet Explorer
Hi,

I want to drag a link from address bar of internet explorer (opera, chrome, ie, firefox etc) to Listview in to my form and store it. Can anyone got easy idea?

thanx.
Posted 30-Oct-12 6:51am
SSAFAK345
Comments
Sergey Alexandrovich Kryukov 30-Oct-12 22:37pm
   
What is broken? MSDN? Bing? Google? too bad... :-)
--SA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Maciej Los 1-Nov-12 11:12am
   
Nice collection of links. The 3. is my favourite.
+5!
   
...well, because this is most relevant to the question, the first to are the prerequisites to it... :-)
Thank you, Maciej.
--SA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Thank you for the links. But i found my exact solution like that:

private void listBox1_DragEnter(object sender, DragEventArgs e)
{
    e.Effect = DragDropEffects.Copy;
}

private void listBox1_DragDrop(object sender, DragEventArgs e)
{
    string gelen = (string)e.Data.GetData(typeof(string));
 
    if (!string.IsNullOrEmpty(gelen))
        listBox1.Items.Add(gelen);
}

PS: I am making url check and link check in my codes...
  Permalink  
Comments
Maciej Los 1-Nov-12 11:13am
   
Please, mark this answer as "solved".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 1 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100