How to drag and drop a control?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In VB 6, we can set "DragMode", the property of the control, to "1 - Automatic", and then the control can be moved. It's quite simple.

I'd like to know how can I move the control on the form in C#.Net? Can some one provide me an example? Thanks in advance!!!
 
The equivalent of "DragMode=vbAutomatic" in c# is DoDragDrop function.

check this link

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemWindowsFormsControlClassDoDragDropTopic.asp


--
Shak
(Houston)




Victy said:
In VB 6, we can set "DragMode", the property of the control, to "1 -
Automatic", and then the control can be moved. It's quite simple.
I'd like to know how can I move the control on the form in C#.Net? Can
some one provide me an example? Thanks in advance!!!
 
Back
Top