I got a textbox within the picturebox.
I want to be able to rotate it. So all the writings inside it can be rotated as well.
what is the best way to do it?
thanks

You need to use the trigonometric functions SIN and COS for the purpose and use the X,Y co-ordinates of the control for position.

That is after you take a picture (friends time (yahoo, google, ask, answers, bing) vb6 snapshot) of the textbox as a text box will not rotate in itself.

Good Luck

I agree with VB5, a textbox can not be rotated in itself. I have attached a small app with rotating fonts that I have done some while back. Play around with the code until you have what you need.

I want to be able to rotate it.

What do you mean rotate? That's kind of vague.

Rotate it like an airplane propeller?

Rotate it like a Marquee on a scoreboard?

Please, clarify. You need to clarify what 'it' is.

I'm guessing you want to rotate the picture and the text as a unit?

Hank

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.