Reputation: 7030
I have a form which has a RichTextBox docked to the left and DataGridView docked to the right. RTB is set to readonly. I'm trying to implement a special drag and drop feature where if the user holds the mouse down on a special keyword, it creates a textbox on top of the keyword which the user can drag to the DGV to drop the textbox off. When the textbox is successfully dropped off on the DGV, the DGV loads some information about the keyboard.
Although I can just easily capture the mousedown & mousemove event on the form itself to implement the above feature, I feel like using the mousemove event to consistently update the position of the textbox is a very inefficient way of approaching this problem and will result in poor performance. I'd like to hear any better ideas about handling the above problem. Thans.
Upvotes: 0
Views: 536
Reputation: 3485
Yes your right about that, you need to use DoDragDrop, search on that it will fill your google search with relative stuff.
Upvotes: 2