Solved

C# - Motion Tween on a Picturebox

Posted on 2007-03-29
3
1,181 Views
Last Modified: 2012-08-13
Hi guys 'n gals,

I wanted to know if there are any pre-made functions within C# (2005), or if it's easy enough to create a motion-tween effect.

Basically, I have LocationA, LocationB and a Picturebox (which is in LocationA). I want to basically do something like this:

Picturebox1.MotionTween(LocationB, 5)


MotionTween will make Picturebox1 move (so you can see the movement, rather than it just instantly moving from one place to another), the "5", would be how many seconds it should take for this motion to happen.


Anyone know of anything like this?


Cheers!
0
Comment
Question by:Cyber-Drugs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 18859124
There is no "canned" method in the .Net framework that does this.

You would have to write it yourself.  =(
0
 
LVL 4

Author Comment

by:Cyber-Drugs
ID: 18860311
That's what I was afraid of...

Cheers Idle_Mind! :o)
0
 

Expert Comment

by:Richard_S_Shepherd
ID: 24890763
The .NET Transitions library does what you want:
http://code.google.com/p/dot-net-transitions/

You can write a line of code like this:
  Transitions.run(Picturebox1, "Left", 100, new TransitionType_Linear(1000));
to animate the left of the picture to position 100 over 1000ms.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question