Click here to Skip to main content
11,631,369 members (72,107 online)
Rate this: bad
good
Please Sign up or sign in to vote.
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 5:51am
SSAFAK345
Comments
Sergey Alexandrovich Kryukov at 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 at 1-Nov-12 11:12am
   
Nice collection of links. The 3. is my favourite.
+5!
Sergey Alexandrovich Kryukov at 1-Nov-12 12:41pm
   
...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 at 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


Advertise | Privacy | Mobile
Web04 | 2.8.150723.1 | Last Updated 1 Nov 2012
Copyright © CodeProject, 1999-2015
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