Thanks for your reply.

Actually i couldn't get the code working, from the msdn site, the one with the 90 degree increments. The compiler showed error at
Code:
 PictureBox1->SizeMode = PictureBoxSizeMode::AutoSize;
I tried commenting out this code, and it compiled successfully, but the image didn't rotate on button click.