Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to rotate a rptlabel in vb6 report 90 degree
in runtime

What I have tried:

I found this function SetWorldTransform from qdi32 library
but it's want hDc value of rptlabel and I don't know how to get it
Posted
Updated 17-Jun-19 0:59am
Comments
[no name] 22-May-19 21:33pm    
"Upgrade" to WPF and use RotateTransform.

1 solution

hDC => Device Context handle

If you still are using VB6, i'm afraid you can not get handle of label. There's only few controls which expose hDC, for example: PictureBox. So, you have to draw own text in PictureBox to be able to display rotated text.
Text in a Picture box - Visual Basic (Classic) - Tek-Tips[^]


For further details, please see:
Bitwise Magazine :: Visual Basic 6 - Graphics Programming[^]
Scale, Translate, Shear, Reflect and Rotate graphics using World Transformation technique[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900