Advertisement

Visual studio 2010.. C# language

Started by January 02, 2015 12:55 PM
2 comments, last by Brain 10 years ago

Hi guys.... I need an urgent reply... Is it possible for an image in visual studio 2010.. on windows form... an image can move... What i mean by move is like a Tumblr pictures.... how those pictures move....
I want my pictures to remain on the same position but move like Tumbler pictures move...
so is it possible and how am i suppose to do it... pleasee help me out.eeee

The "move like Tumblr pictures" is done through animated image formats.

Adding that to a Windows forms application usually isn't too hard.

Advertisement

Hey,

I know this doesn't pertain to the question, but there's no reason to use Visual Studio 2010. Visual Studio 2013 Community Version was released a while ago. It's full, and you can use it in commercial projects. As of now, you can even download Visual Studio 2015 (It's not completed though). I don't see any reason to use older Visual Studio software, unless you're using express for the 'basic' and 'expert' setups.

ANSWERING THE QUESTION:

Far as I know, you can drop a .gif file into Windows Forms and it should work out fine.

What will you make?

If you don't want to just use a gif, the trick is to split your image into multiple frames yourself and use a timer to animate the frames. You can then use this for sprite animation, but then you're getting into the realms of something you really should use a game API for, rather than windows forms. For displaying just a few images, windows forms will be OK, but once you start getting lots of images on screen, you're doing it wrong. You could also still use a gif for sprite animation but the problem comes in that you can't easily tell with the windows forms api which frame is currently being displayed, so moving from one animation to another becomes a pain (although there are ways to do this if you don't just use plain PictureBox).

This topic is closed to new replies.

Advertisement