Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
On user control Mouse down event I have written a code to move that control with mouse but Usercontrol have other control also. On that control it doesn't detect that it is usercontrol.

For this problem I tried a solution.

this.Capture = false

It solves my problem but create another problem when I click outside usercontrol it moves user control. I have to click somewhere to remove capture.
Posted
Updated 16-Jun-10 5:14am
v3
Comments
Johnny J. 16-Jun-10 10:59am    
Doesn't your keyboard have any capital letters? It's common to start a sentence after a full stop with a capital letter. Also "I" is always written with a capital I. And then it's customary to end a question with a question mark. all this to improve readability and make it easier for others to understand...
Abhinav S 16-Jun-10 11:10am    
Edited question to make question more readable.
Johnny J. 16-Jun-10 11:14am    
But you forgot the subject - classic :-)
himani_jha 18-Jun-10 4:07am    
Is there any way to automatically remove capture? plz help.

1 solution

himani_jha wrote:
it solves my problem but create another problem when i click outside usercontrol it moves user controli have to click somewhere to remove capture

So where is the problem in this?
 
Share this answer
 
Comments
himani_jha 17-Jun-10 5:37am    
i have arrray of user control
i want move usercontrol only when mouse down happens on that user controls.. its work fine.
but after moving a user control when i click on other user control to move it moves first user control for first time. that i dont want to be happen.
hope u understand my problem

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