PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
How to DragDrop controls not text
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
How to DragDrop controls not text
![]() |
How to DragDrop controls not text |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Can anyone point me to a good article on using DragDrop with
Windows.Forms.Controls. I am not interested in moving text in ListViews or anything like that. I want to implement the same functionality as the VS Forms designer. Move Buttons, TextBoxes etc. Select single or multiple controls to move. Thanks ! |
|
|
|
#2 |
|
Guest
Posts: n/a
|
I don't know a good article, but one way to do it, is to simply trap the
mousedown event, set a mouseDown boolean to true. Trap the mousemove event and check if mousedown == true, if so set the position of the selected control according to the mousecoords. Trap the mouseup event and set the mousedown boolean to false. HTH.. -- Jonne Kats Advisor ICT Solutions www.advisor.nl http://www.dotnetjunkies.com/weblog/jonne%20kats/ "Peter Bourget" <--phbourget*attbi.com--> wrote in message news:#ytJ0KgODHA.1556@TK2MSFTNGP10.phx.gbl... > Can anyone point me to a good article on using DragDrop with > Windows.Forms.Controls. I am not interested in moving text in ListViews or > anything like that. I want to implement the same functionality as the VS > Forms designer. Move Buttons, TextBoxes etc. Select single or multiple > controls to move. > Thanks ! > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

