![]() It makes transferring data from one control to the next, and from and to other applications and to the Windows shell itself, into a straightforward activity. The first step to enable drag-and-drop in a form or control is setting the AllowDrop property to True.Īs a matter of fact, drag-and-drop greatly simplifies how people use virtually any application. Yet drag-and-drop is a feature that, if missing, users promptly miss and are quick to add to the wish list for the next upgrade. Drag-and-drop is not the solution to any core business issues and doesn't add any new functionality to the application. Sure, drag-and-drop doesn't make your application run faster, nor does it add anything to the core business of the application. Notable examples are the TextBox and the PictureBox controls.ĭrag-and-drop is one of those programming features rarely listed in the user requirements document because it is perceived as secondary and minor. This article demonstrates how to import files from the Windows shell and how to enhance some UI controls to make them accept input via drag-and-drop. By accomplishing a few mandatory steps and working with the information available in the event arguments, you can easily facilitate dragging and dropping files, text, and any other sort of serializable data objects. In Windows Forms applications, drag-and-drop operations consist mostly of handling a series of events. If you want to capture your users' imaginations, enable drag-and-drop.ĭrag-and-drop doesn't fulfill requirements, but it contributes to making your application appear more professional and easy to use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |