This is a discussion on To rotate the control in .net 2005 in c# within the C# Programming forums, part of the Software Development category; To rotate the control in .net 2005 in c# I want to rotate the controls that means in normal application ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| To rotate the control in .net 2005 in c# I want to rotate the controls that means in normal application when we drag and drop a control take for example a label by default the orientation of the text will be horizontal but for me i want it in a vertical manner (in 90 degrees). So my main requirement is irrespective of control whether it is a label or button or textbox etc... it should be possible to rotate the control by 90 Degree and also the text inside the control... I need a help in this regard, since in winforms there are a lot of controls and i don't know how to approach this issue |
|
#2
| |||
| |||
| Hi, I am sure you can not perform this in windows forms at least not easily. However you can perform this in WPF and then bring WPF to your windows Form if you are looking for cool designs or even special effects to your controls.
__________________ Shaalini.S ![]() Be the Best of Whatever you are... |
|
#3
| |||
| |||
| Hi, It's not easy to do what you want on the WinForm controls. It requires you to create a custom control for each standard .NET control you'd like and custom draw the appearance. What's more, not all standard .NET control allow you to change its appearance completely. As ZuechB has pointed out, you can WPF controls instead because we can change the appearance of all WPF controls completely without losing any built-in behavior/function of the WPF controls. Then you can integrate the WPF controls into your WinForm using the ElementHost control. For more information, refer to the following documents: Control.Template Property (System.Windows.Controls) WPF: ControlTemplate - Completely Swapping the UI of an Element. | Sahil Malik - blah.winsmarts.com ElementHost Class (System.Windows.Forms.Integration) Walkthrough: Hosting a Windows Presentation Foundation Composite Control in Windows Forms
__________________ A.Rajesh Khanna |
|
#4
| |||
| |||
| Hi all, Thanks for the helpful suggestions sure i will consider your suggestions Even i was thinking how to implement this... but the suggestions given by ZuechB and you i understand that we can implement in WPF easily rather than doing in 2.0 winforms |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can I run all VS Pro 2003, 2005 and 2008 as clients with VS Team System 2005? | shaalini | Server Management | 1 | 05-08-2009 03:08 AM |
| use of Custom Control and User Control? | a.deeban | ASP and ASP.NET Programming | 1 | 08-20-2007 07:25 AM |
| How to Rotate a Dynamic Text box.. I have problem in ... | kingmaker | Flash Actionscript Programming | 2 | 07-30-2007 01:07 AM |
| How to rotate 3d objects using j2me? | mobilegeek | J2ME | 1 | 07-24-2007 05:36 AM |
| How to rotate 3d objects using j2me? | mobilegeek | J2ME | 1 | 07-23-2007 09:46 PM |
Our Partners |