Hello room, I need to design a program that will have some images displayed in pictureboxes. I need to make those picture boxes rotate like in encarta 2004 or any other form possible.
Plz I need somebody that can me give crew or code on hw I can do.
Hello room, I need to design a program that will have some images displayed in pictureboxes. I need to make those picture boxes rotate like in encarta 2004 or any other form possible.
Plz I need somebody that can me give crew or code on hw I can do.
Hi. Think of it logically. You must rotate the Image in the picture box x degrees. Then, you will need to rotate the image x + some more degrees.
Strap this on to a Timer.
If you just want to Rotate your image in a circle, you will most likely use Rotate90FlipNone.Code:Me.PictureBox.Image.RotateFlip(RotateFlipType)
Sure, that will RotateFlip your image but it won't update.
Thus, you will need to call Me.Refresh() after RotateFlipping your image.
If I helped you, please give me rep!![]()
Thanks.
-Wiz Kid
Am not saying rotating the in mage inside the picturebox, am taking about rotaing the picture box location itself ranging from one location to another. The way the clock hand turns that is how I want the picturebox rotate on various location circularly on the form like encarta 2004.
See the attached sample, I haven't seen Encarta but added 6 Pictureboxes to a form in a circular fashion and used GraphicsPath to get the point references of this circle, then used BackgroundWorker to "animate" them by setting new locations not too fast. I just wrote the name of the Picturebox so it is easy to see which is which when they move around, didn't load any images. This should give you an idea of what you can work with.
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly
John H thanks you so much. Your post solved my problem completely, the rest work is mine since you have made foundation for. I love you!
Remain blessed!
John H your code solved my problem remaining that it rotates like clock. It ticks, can u help give me crew on how to make rotate like tyre of a car or electric fan not like wall clock just like encarta 2004
Plz ur help is of immense importance.
God bless
Bookmarks