Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi!

 

I wanted to say I'm new at these boards, so Hello World!

 

And I also have a question.

 

I've used examples where you drag text between two listview's but when I place one of them in a container, the drag-drop ceases to function (and it is not enabled to drop into the one in the container (a groupbox)). Why is that and how do I work around it? That is just a case I made to test what was wrong, in my real app I'm having a container that conains a container that contains a user made (by me) control..

 

/Rosecroix

signing in.

  • *Gurus*
Posted

That should still work just fine - OLE drag and drop is designed to work between processes let alone containers. The only thing I can think of is that perhaps your events got unbound when you were cutting and pasting controls between the containers.

 

If I had this problem I would be sticking Debug.WriteLines in there to see what drag and drop events were actually getting raised, and if you're calling DoDragDrop as you should be etc.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...