Just kind of a random question. How exactly do you rotate objects in vb.net?

Recommended Answers

Depends... if you just need to draw it rotated using GDI+, you can use Graphics.RotateTransform and draw using the original, unrotated coordinates. Otherwise, I think you're stuck

Jump to Post

All 4 Replies

gusano79 solution is right for all objects. But I suspect you are tagging picturebox here, so how about using RotateFlip() to Flip the image inside the picturebox but not a whole picturebox itself?

Good point E.Newbie, I think there could be a little trick on that. But I'll try first before showing the code. There's something in my mind that I think would work. I'll get back to you guys.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.