Using a Horizontal Vertially-- How to

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H
I have developed a control which is a horizontal strip
I want to make use of that control making it vertical
Is there nay option that i can do it or I will have to develop a other control which is vertical
For example a Horizontal ScrollBar, can i place a horizontal scroll bar vertically, some thing like this is required for my control..

Please suggest..
 
* =?Utf-8?B?TmlsZXNo?= said:
I have developed a control which is a horizontal strip.
I want to make use of that control making it vertical.
Is there nay option that i can do it or I will have to develop a other control which is vertical?
For example a Horizontal ScrollBar, can i place a horizontal scroll bar vertically, some thing like this is required for my control...

Why not dynamically add/remove the scrollbars based on the settings?
 
Hi Herfried ,
I guess u haven't got my question.

I don't want to add or remove the scroll bars nor am wrkg on scrolls.
I am developing a control which is a collection of strips placed
horizontally.
I just want to rotate the control by 90 dergees so that it can be used
vertically also.
How can I do it? Any idea......
 
* Nilesh Rade said:
I guess u haven't got my question.

I don't want to add or remove the scroll bars nor am wrkg on scrolls.
I am developing a control which is a collection of strips placed
horizontally.
I just want to rotate the control by 90 dergees so that it can be used
vertically also.
How can I do it? Any idea......

What strips?!
 
How simple can he get...
Nilesh has a control which he has written, he wants it to be rotatable. Is
it achievable when drawing, that was his question.

No offence, but i think you are more interested in posting *A reply* than
posting a proper reply.

--Saurabh
 
You will need to add a property to the control specifying whether it is
vertical/horizontal. You will need to paint the control either horizontal
or vertical depending on the setting, there is no way to just rotate it. It
should be very easy though as most of it would be just flipping the x,y &
width,height components.

Bob
 
* "Saurabh said:
How simple can he get...
Nilesh has a control which he has written, he wants it to be rotatable. Is
it achievable when drawing, that was his question.

It is. I didn't think of that because I was not sure what the OP wanted
to say by "strip" (I'm to a native English speaker, that's why I asked).

Nevertheless, without any further details, concrete help is impossible.

[Offence snipped :-)]
 
Hi Herfried,
Let me explain you clearly now.
See I am have a long rectangular control which is very much like tabs. I
am adding tabs to it horizontally. Now if I want to place that tab
vertically how can i place it? Tht was what I was asking...I have
already developed the vertical and now also want to place it
vertically..
I hope you got my question now...

i was keen on rotating that tab control by 90 degrees because I can't
write the text on the tab when am drawing the Tabs vertically, right. So
what I thought that if there is anyway tht i will place the Tab
vertically...

This is very challenging now...Because Is till haven't got solution for
it.....
 
Nilesh,

* Nilesh Rade said:
See I am have a long rectangular control which is very much like tabs. I
am adding tabs to it horizontally. Now if I want to place that tab
vertically how can i place it? Tht was what I was asking...I have
already developed the vertical and now also want to place it
vertically..
I hope you got my question now...

i was keen on rotating that tab control by 90 degrees because I can't
write the text on the tab when am drawing the Tabs vertically, right. So
what I thought that if there is anyway tht i will place the Tab
vertically...

You will have to add a property which indicates if the tabs should be
drawn vertically or horizontally. Then you will have to adapt your
drawing code to support drawing in both directions. You can use
something like this to draw rotated text:

\\\
Private Sub Form1_Paint( _
ByVal sender As Object, _
ByVal e As System.Windows.Forms.PaintEventArgs _
) Handles MyBase.Paint
e.Graphics.RotateTransform(90)
e.Graphics.DrawString("Hello World!", Me.Font, Brushes.Blue, 0, 0)
End Sub
///
 
Back
Top