Vb.net – How to rotate a PictureBox on a windows form using vb.net

vb.net

I need to rotate a picture box 180 degrees when a condition in my if statement is met. Is this possible?

Best Answer

I'll assume that you want to rotate the image inside, because rotating the box itself doesn't make much sense (and is impossible anyway).

Try this:

myPictureBox.Image.RotateFlip(RotateFlipType.Rotate180FlipNone);
Related Topic