Click here to Skip to main content
15,891,848 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i know how to create button using c# and make event for it .Eg :
C#
Button foo = new Button();
       foo.MouseDoubleClick+=new MouseButtonEventHandler(PLay);

then making method :
C#
private void PLay(object sender, EventArgs e)
         {}


but i dnt know how to make event for dragging so that i can move this button anywhere on window..

thankx in advance
Posted
Updated 7-Jun-12 7:16am
v2

1 solution

 
Share this answer
 
v2
Comments
VJ Reddy 7-Jun-12 13:48pm    
Useful references. 5!
Maciej Los 7-Jun-12 13:49pm    
Thank you, VJ ;)
Sandeep Mewara 7-Jun-12 14:47pm    
Good links. 5!
Maciej Los 7-Jun-12 14:50pm    
Thank you, Sandeep ;)
mane0806 7-Jun-12 23:32pm    
in above links there is no description for making butns dragable. i need that..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900