Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
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
Comments
Sergey Alexandrovich Kryukov 30-Oct-12 22:37pm    
What is broken? MSDN? Bing? Google? too bad... :-)
--SA

 
Share this answer
 
Comments
Maciej Los 1-Nov-12 11:12am    
Nice collection of links. The 3. is my favourite.
+5!
Sergey Alexandrovich Kryukov 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
Thank you for the links. But i found my exact solution like that:

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


C#
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...
 
Share this answer
 
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900