C# WPF : Move the random object when mouse reaches the position of the poin
I am trying to generate random points on the canvas. So i want to the random point on the screen to move to a new random location, when mouse touches it. How do i do this?? this is not happening with any of the mouse events. An example would be appreciated.
I have posted some questions regarding WPF here but I never got any reply. So I will suggest you to post it in Microsoft Expression forum.
There are many experts of WPF and Silverlight they will help you :)
And please provide more details about your idea/problem of above post.
well i am trying to work with this code http://stackoverflow.com/questions/3643639/move-a-rectangle-around-a-canvas but here the position of the random object is controlled by the buttons and their event handlers....but instead i want to control it using the mouse...i mean when the mouse reaches the object or touches it, the object should move to a new location.....you get it what i am trying to say??
well let me explain you clearly....i am going to create a random object on the screen and when the mouse touches the object, the object should be relocated to another random location on the screen. This should be in WPF.
I dnt have much time now sorry :(
But luckily last night I created a small application where object follows mouse. I think you are smart enough to modify code little bit :)
So take a look at it I am sure this will help you else will post solution tomorrow. Its in vb.net if you dont know VB.NEt convert that code on this site
:) good luck
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...