Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

C# - Motion Tween on a Picturebox

Posted on 2007-03-29
3
Medium Priority
?
1,186 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

604 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