1

I have a panel in winform and I need rotate it 90 degrees when I click on the button.

I have looking for this in google and in other questions, but they have no answer....

here is my panel enter image description here

And how I need

enter image description here

Ladessa
  • 985
  • 4
  • 24
  • 50

1 Answers1

1

As far as I know, there is no way to rotate a panel in WinForms.

To rotate objects on a form, I've always had to use WPF.

Here is an intro to WPF: http://www.codeproject.com/Articles/18232/A-Guided-Tour-of-WPF-Part-1-XAML

The specific part about rotation is in part 3 on data binding.

bkempert
  • 29
  • 3
  • I have downloaded a sample code ..but I not quite understood..Can you help me? – Ladessa Mar 19 '13 at 13:21
  • Which part specifically are you having trouble with? Keep in mind that this is not traditional winform application development, and you must utilize the XAML to really take advantage of the additional features in WPF. – bkempert Mar 19 '13 at 13:31
  • In source which I have downloaded, has a game...In this game the panel rotate...but in this sample have multiple concepts from WPF and it's confused for beginners ...I need only rotate a panel ;S – Ladessa Mar 19 '13 at 13:35
  • @illDev Well, you need to *learn* WPF first. – Mohammad Dehghan Mar 19 '13 at 15:22
  • @illDev It will be difficult for you to understand all of the differences between WPF and winforms if you don't take the time to learn them. The rotation feature is part of XAML. – bkempert Mar 19 '13 at 16:55