473,473 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Drawing Text in an angle

Hi

During the paint event, I can DrawText from left to right, or from top to
bottom (angled by 90°) by setting the Drawing.StringFormat.FormatFlags, but
how can I drawText from right to left (angled 180°) or bottom to top (angled
270°)?

Urs
Nov 21 '05 #1
4 2219
"Urs Vogel" <uv****@msn.com> schrieb:
During the paint event, I can DrawText from left to right, or from top to
bottom (angled by 90°) by setting the Drawing.StringFormat.FormatFlags,
but how can I drawText from right to left (angled 180°) or bottom to top
(angled 270°)?


Untested:

<URL:http://www.google.de/groups?selm=uHQSG%23zrCHA.1676%40TK2MSFTNGP10>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
"Urs Vogel" <uv****@msn.com> schrieb:
During the paint event, I can DrawText from left to right, or from top to
bottom (angled by 90°) by setting the Drawing.StringFormat.FormatFlags,
but how can I drawText from right to left (angled 180°) or bottom to top
(angled 270°)?


Untested:

<URL:http://www.google.de/groups?selm=uHQSG%23zrCHA.1676%40TK2MSFTNGP10>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
Thanks Herfried, looks reasonable. Can't understand why this hasn't been
enumerated in Drawing.StringFormat.FormatFlags.

Urs

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP12.phx.gbl...
"Urs Vogel" <uv****@msn.com> schrieb:
During the paint event, I can DrawText from left to right, or from top to
bottom (angled by 90°) by setting the Drawing.StringFormat.FormatFlags,
but how can I drawText from right to left (angled 180°) or bottom to top
(angled 270°)?


Untested:

<URL:http://www.google.de/groups?selm=uHQSG%23zrCHA.1676%40TK2MSFTNGP10>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4
Thanks Herfried, looks reasonable. Can't understand why this hasn't been
enumerated in Drawing.StringFormat.FormatFlags.

Urs

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP12.phx.gbl...
"Urs Vogel" <uv****@msn.com> schrieb:
During the paint event, I can DrawText from left to right, or from top to
bottom (angled by 90°) by setting the Drawing.StringFormat.FormatFlags,
but how can I drawText from right to left (angled 180°) or bottom to top
(angled 270°)?


Untested:

<URL:http://www.google.de/groups?selm=uHQSG%23zrCHA.1676%40TK2MSFTNGP10>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

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

Similar topics

5
by: Lex | last post by:
As you may have seen in other posts I have a C# app that has custom shortcuts so I need to OwnerDraw my MenuItems. Thanx to vJ and Mick for the tips so far. I am almost there :-) My last (I...
2
by: Marcelo | last post by:
Greetings! I develop a Multiple Windows Forms application in Microsoft Visual Studio C++ .NET 2003 and I have a problem with string drawing. I can draw it vertically, but I need to turn the...
1
by: Andy Roxburgh | last post by:
Hi, I have an monitoring application that displays various pieces of data, which are changing, on a tabpage within a form. The data is displayed in various different colours and the various...
2
by: Just Me | last post by:
PictureControl1 is basicly a PictureBox and g is a Graphics object for the Picturebox. For large fonts (33) it works OK. For smaler fonts (10) there are touches of red around the letters. ...
0
by: Urs Vogel | last post by:
Hi During the paint event, I can DrawText from left to right, or from top to bottom (angled by 90°) by setting the Drawing.StringFormat.FormatFlags, but how can I drawText from right to left...
1
by: jjbutera | last post by:
There are a lot of examples out there, but I was hoping something could help me further. I'd like to draw text (unknown length) to an image, but then crop the image to the height and width of the...
1
by: AMP | last post by:
Hello, I am looking for sample code to draw text on an arc. I see the stringFormat.FormatFlags enum for vertical but nothing for arcs. I could do it with lenthy trig algorythm that would take in...
1
by: Satya | last post by:
Hi, I am new to GDI+ in C# and so excuse me if this sounds silly. I need to draw text at different places on the form (mainly TopLeft, TopRight, BottomLeft and BottomRight). I can use either...
0
by: gkostova | last post by:
Hi , Can someone one help me please.I'm begginer in C#, and I try to learn it , but I need help. I have in my form 2 spliterPamels, in one of them I want to display text when form is load. The...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.