Windows Develop Bookmark and Share   
 index > Windows Forms General > Rotate y-axis C#
 

Rotate y-axis C#

hi,
is there any way that i could rotate y-axis, that it would have 0 at the bottom of the screen and when i go up it will increase.


Jabcek  Monday, May 12, 2008 3:42 PM

You want to change the orientation of the x-axis and y-axis of the forms designer? Unfortunately, this can't be done. It is always in the top left, as all the controls expect the values passed to them will refer to the top left.

David M Morton  Monday, May 12, 2008 3:53 PM
You need to be much more specific. What control are you using? Is this an application question? Excel maybe? If so, you're in the wrong forum. If this is a programming question, the y-axis of what?

David M Morton  Monday, May 12, 2008 3:44 PM
I'm in Windows forms general forum, so i am building a windows application. I am using C# language with with microsoft visual studio 2005. And this language has its koordinates x-right, and y-down. So 0,0 is in upper left corner, i would like to have it in bottom left corner.

Tnx
Jabcek  Monday, May 12, 2008 3:50 PM

You want to change the orientation of the x-axis and y-axis of the forms designer? Unfortunately, this can't be done. It is always in the top left, as all the controls expect the values passed to them will refer to the top left.

David M Morton  Monday, May 12, 2008 3:53 PM
thanks, i thaught it cannot be done.

Jabcek  Monday, May 12, 2008 3:56 PM
David M Morton wrote:

You want to change the orientation of the x-axis and y-axis of the forms designer? Unfortunately, this can't be done. It is always in the top left, as all the controls expect the values passed to them will refer to the top left.

True. Quite true. But one could always write a method or a class that translates user coordinates that the OP wants, into physical coordinates that windows uses.

public System.Drawing.Rectangle Bounds { get; }

Member of System.Windows.Forms.Screen

Summary:

Gets the bounds of the display.

Returns:

A System.Drawing.Rectangle, representing the bounds of the display.

That might be a good place to start from.

Rudedog

Rudedog2  Monday, May 12, 2008 5:38 PM

You can use google to search for other answers

Custom Search

More Threads

• Windows Forms Help
• How to indent active buttons???
• General paths problem
• MDI - Maximized Child Icon
• Comparing Types
• DateTimePicker
• How to create a custom Datagridview ComboBox Column
• How can i get desktop's icon's information ?
• OpenFileDialog problem
• Weird printing issue