Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to rotate text on a label in VB6?

1,673 views
Skip to first unread message

George Fang

unread,
Mar 12, 2004, 2:46:37 PM3/12/04
to
I am trying to get text displayed on a label to be rotated by 90, 180, 270
degrees. But
I am not sure how to achieve this. I tried to use sdk to create font with
orientation
changed and used "sendmessage to setfont" trick. As there is an easy way to
get a
handle for textbox, I tried it on textbox control as well. Though text is
rotated in textbox,
the blank horizontal line there is still a problem. Any idea? Thanks,
George.


Ken Halter

unread,
Mar 12, 2004, 2:55:29 PM3/12/04
to
See:

Text Rotation
http://www.kath-rock.com/sourcecode.htm

Text At Any Angle
http://www.vbaccelerator.com/codelib/sidelogo/sidelogo.htm

And, if you register for their support forum, Developer Express will give you this
library....

XpressFree Library
http://www.devexpress.com/?section=/Products/ActiveX/XFreeLib

Comes with label controls that can be rotated (and quite a few other "goodies")

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep it in the groups..

"George Fang" <gf...@island.net> wrote in message
news:eILw8qGC...@tk2msftngp13.phx.gbl...

George Fang

unread,
Mar 12, 2004, 4:23:56 PM3/12/04
to

Thanks a lot. This will work as I think I can use picturebox as a substitute
for label control for the purpose. George.

"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:O5JP2vGC...@TK2MSFTNGP09.phx.gbl...

John Eikanger [MSFT]

unread,
Mar 12, 2004, 5:19:41 PM3/12/04
to
Hi, George

You may want to just draw directly on the form.

Hope this helps,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| Reply-To: "George Fang" <gf...@island.net>
| From: "George Fang" <gf...@island.net>
| References: <eILw8qGC...@tk2msftngp13.phx.gbl>
<O5JP2vGC...@TK2MSFTNGP09.phx.gbl>
| Subject: Re: How to rotate text on a label in VB6?
| Date: Fri, 12 Mar 2004 13:23:56 -0800
| Lines: 50
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <e6oQdhH...@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.vb.controls
| NNTP-Posting-Host: h24-69-177-86.pk.shawcable.net 24.69.177.86
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.vb.controls:158660
| X-Tomcat-NG: microsoft.public.vb.controls

0 new messages