المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Drag & Drop problem



C# Programming
07-04-2009, 09:30 PM
I have problem in C# when I want to drop text on my textbox. If I drag tet form notepad it work ok, but if that text is html link I end up with link to the page, not link caption, withc I want.

I use thise
string tmp = (string)e.Data.GetData(DataFormats.Text);

How can I know what type of object is over control, if it is link from browser what should I do. I saw html type and I could parse it but my problem is how to know that object is link, and not a plain text.

Did I make myself clear?