I'm trying to display a rectangle in a picture box and then rotate it. Using the information I found at http://www.informit.com/articles/art...29477&seqNum=9 I managed to display a rectangle in a picture box, but, I can't get it to rotate. So, how do I rotate an image in VB.NET?

VB Code:
  1. Dim myGraphics As Graphics, myPen As Pen
  2.  
  3. myPen = New Pen(Color.Red)
  4. myGraphics = Graphics.FromHwnd(PictureBox1.Handle)
  5. myGraphics.DrawRectangle(myPen, 100, 100, 200, 200)
  6. myGraphics.TranslateTransform(100, 100)
  7. myGraphics.RotateTransform(45)