473,671 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rotating a control ?

Hi Folks! :O)

I would need to rotate a control 180 degrees (and still be able to use it).
Does any one knows how to make this happens ?

I have a TrackBar control on a form with its TickStyle set to None and its
Orientation set to Vertical. For now the cursor (on the trackbar) is
pointing right and is set at the bottom of the control when its value is 0.
I'd like to have the little cursor to point left instead of right and have
it at top of control when Value worth 0.

Thanks!

--
Best Regards
Yanick Lefebvre
Nov 21 '05 #1
3 1241
I do not believe this is possible. You would have to write a custom trackbar
style control.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Zoury" <ya************ *@hotmail.com> wrote in message
news:Or******** ******@TK2MSFTN GP09.phx.gbl...
Hi Folks! :O)

I would need to rotate a control 180 degrees (and still be able to use it). Does any one knows how to make this happens ?

I have a TrackBar control on a form with its TickStyle set to None and its
Orientation set to Vertical. For now the cursor (on the trackbar) is
pointing right and is set at the bottom of the control when its value is 0. I'd like to have the little cursor to point left instead of right and have
it at top of control when Value worth 0.

Thanks!

--
Best Regards
Yanick Lefebvre

Nov 21 '05 #2
thanks bob!

that's what I was affraid of.. :O/

nice site by the way. ;O)
is this one yours too ? : www.bobpowell.com <g>

--
Best Regards
Yanick Lefebvre
"Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > a écrit dans le message
de news:OH******** ******@TK2MSFTN GP12.phx.gbl...
I do not believe this is possible. You would have to write a custom trackbar style control.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Zoury" <ya************ *@hotmail.com> wrote in message
news:Or******** ******@TK2MSFTN GP09.phx.gbl...
Hi Folks! :O)

I would need to rotate a control 180 degrees (and still be able to use

it).
Does any one knows how to make this happens ?

I have a TrackBar control on a form with its TickStyle set to None and its Orientation set to Vertical. For now the cursor (on the trackbar) is
pointing right and is set at the bottom of the control when its value is

0.
I'd like to have the little cursor to point left instead of right and have it at top of control when Value worth 0.

Thanks!

--
Best Regards
Yanick Lefebvre


Nov 21 '05 #3
BobPowell.com used to be mine but due to other interests at the time I let
it lapse and that chap picked it up. I have it on back-order so if he ever
forgets to renew..... ;-)

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Zoury" <ya************ *@hotmail.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
thanks bob!

that's what I was affraid of.. :O/

nice site by the way. ;O)
is this one yours too ? : www.bobpowell.com <g>

--
Best Regards
Yanick Lefebvre
"Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > a écrit dans le message
de news:OH******** ******@TK2MSFTN GP12.phx.gbl...
I do not believe this is possible. You would have to write a custom

trackbar
style control.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Zoury" <ya************ *@hotmail.com> wrote in message
news:Or******** ******@TK2MSFTN GP09.phx.gbl...
Hi Folks! :O)

I would need to rotate a control 180 degrees (and still be able to use

it).
Does any one knows how to make this happens ?

I have a TrackBar control on a form with its TickStyle set to None and its Orientation set to Vertical. For now the cursor (on the trackbar) is
pointing right and is set at the bottom of the control when its value
is 0.
I'd like to have the little cursor to point left instead of right and

have it at top of control when Value worth 0.

Thanks!

--
Best Regards
Yanick Lefebvre



Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1879
by: Charles A. Lackman | last post by:
Hello, I am trying to rotate a picturebox control. I have done some experimenting with rotating the image inside the picturebox, but I am trying to get the affect of grabbing the corner of the picturebox and moving the mouse to change the angle. I am sure I can implement the code to grab the corners as I have already implemented code to stretch the image diagonal, up, and down and for a border to appear when the picturebox is entered. ...
1
2102
by: Grunt | last post by:
Hi, I have been trying to put together a rotating banner. the code works but I am having a problem with the caching of the banner images. no matter what I try the page is constantly reloading the images, even worse they are not loading completely. This version includes a (vain) attempt at forcing the banner images to cache. Apart form the caching problem the scripting seems to work Any help welcomed:
2
3109
by: MichaelH | last post by:
Hi all, I am writing a program that has to draw musical notes on a staff. To do this I need to draw Ellispses (representing the notes) on a horizontal line and rotate them slightly (by 15 degrees). So there might be say, 3 ellispses each one seperated from the next by 30 pixals along the x-axis but each ellipse should have the same y coordinate. However everytime I try and rotate the ellispe using the RotateTransform() method and...
3
5952
by: avalence | last post by:
Hello, I am trying to create a nice rotating earth globe (on mouse) on my web site, in order to display my professional relationships all over the world. The best way seems to be a javascript. In fact I still hesitate between java and javascript. My question is how can I create a interacting globe using a satellite photo. This is a very usefull applet for everybody. All suggestion welcome! Thanks Arnaud
1
2564
by: AR123 | last post by:
Hi I want to set up a rotating banner. Not sure how to incorporate my rotating banner code into the code below. I want the rotating banner to be the main feature image? This is set up in mediasurface My code is: <!-- start page container --> <div id="pageContainer"> <!-- start middle content area --> <div id="genericMiddle">
0
8476
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8670
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7437
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4407
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.