Click here to Skip to main content
11,718,289 members (86,161 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
0 OriginalGriff 215
1 F-ES Sitecore 210
2 Maciej Los 140
3 Jochen Arndt 120
4 Andy Lanng 115
0 OriginalGriff 535
1 Maciej Los 529
2 Richard MacCutchan 440
3 CHill60 415
4 F-ES Sitecore 415


Advertise | Privacy | Mobile
Web02 | 2.8.150901.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