Thursday, August 19, 2010

Drag-and-Drop in UserControls - CodeProject

Image representing Microsoft as depicted in Cr...Image via CrunchBaseI quote the intro:
Here's a problem that comes up pretty regularly: You have a complex user interface with a number of controls, groups of which need to be reused in different places. To manage the complexity and facilitate reuse, you encapsulate each group of controls in a UserControl. All works well, until you need to perform a drag-and-drop operation involving one of the child controls in one of your UserControls. The UserControl intercepts drag-and-drop events, so they never make it to the child controls.
This problem must come up all the time, but oddly enough, there isn't much written about it in the Microsoft newsgroups. This article addresses the problem and provides a simple solution along with a sample project.
Drag-and-Drop in UserControls - CodeProject
Enhanced by Zemanta

No comments: