How Can I rotate A single PictureBox round a form in vb.Net

Nonasoft

Member
Joined
May 3, 2007
Messages
16
Programming Experience
1-3
How can I rotate a single PictureBox round a form.
I have aprogram am wrting which warants me rotating picturebox round a form on a selected origin. Plz help! I have posted somehting similiar to this but did not give me what I need. Now I need only one pictureBox rotating not pictureboxes. Than
 
The PictureBox only has a position (x, y) and a size (width, height). There is no way to tell it to draw itself other than in a square parallel to the form. Therefore, you cannot simply use a PictureBox and tell it how to draw itself... You'll need to play with a Graphics object.

Read this, it may help you out :
http://www.codeproject.com/csharp/rotateimage.asp?df=100&forumid=13713&exp=0&select=1917611

The problem will obviously come when you try to rotate the image while keeping the same distance from the origin.
 
Back
Top