I want to rotate a whole button at the same time with image inside. I 'm using this code for rotating my button to left.
int y = button1.Size.Width; //i'm taking position y
int x = button1.Height; //i'm taking position x
button1.Size = new Size((x+y)-y , (x + y) - x); //now i rotate it
But the image inside remains the same. How can i rotate image inside at the same time with button. And how can i take image position.(i mean if its rotated or not)