Rotating Label

I wander how can i let a Label rotate a full 360 Horizontal

( like the xp screensaver)

Around and end at it's normale place.

I cant find anything about this in the helpfiles.

no samples ether.

i need help with this one.

regards

Nightblade

[351 byte] By [Nightblade] at [2008-1-10]
# 1

Make 360 you mean charachter reversed

You mean it was like that "<" and become like that ">"

or it was like that "ab" and become "ba"

OmarAbid at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2

Omar

No that is not what i had in mind.

What i wanne see happen is that a sample The letter X rotating Horizontal only

let say you you put a clock flat on the table like the time flys bye it rotates

that is what i wanne see this X do to.

Hopes this helps seeing my problem.

regards

Nightblade.

Nightblade at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 3

There are two ways to do that.

One is to use an animated gif file where the image is rotated through the gif frames.

The other way is much more complex (and elegant). You could use System.Drawing to laod a single image and rotate that. Use a panel as a writing surface and rotate the bitmap with system.drawing in the panel's paint routine. Evoke the paint routine by using a timer which does a panel.refresh

ReneeC at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 4

ReneeC

I wanne try this panel solution you give me.

I have VS2008 Pro

Are there any help files ore samples cause there is a file called

VB2005Image library

that have the moving icon's butt there Videofragment

if that where code i can learn.

Butt i just wanne learn the more i now the more fun i have

with VS2008.

So where can i find help or Sample About your Solution ?

Regards

Nightblade

Nightblade at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 5
There's a sample of Picture rotation of VB2005 sample see it perhaps help !
OmarAbid at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 6

Omar Thanks

Butt where is this help cause i can't find it in VS2008

and i don't have vb2005.

If it is on the net then where ?

regards

Nightblade.

Nightblade at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 7

I'll search it for you

I'm searching

OmarAbid at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 9

Nightblade,

I don't have vs2008 here so I don't know what's in help but I am sure that system.drawing is documented there. They certainly didn't remove it. Also know that system.drawing is documented in the Object Browser and that's a quick rich resource. Perhaps not rich enough for a new developer, but it's a valuable resource that I recommend.

ReneeC at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 10

Thanks Omar

Give me some time to check it out.

i think this is usefull for nicerlooking forms

it opent a new way for me to build forms

http://www.codeproject.com/vb/net/EllipticalCircularButton.asp

http://blogs.msdn.com/mgrayson/archive/2007/02/16/creating-a-glass-button-the-complete-tutorial.aspx

this can change everthing for you in the way build.

regards

Nightblade.

Nightblade at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 11

I'm checking, but it's you who make it ?

OmarAbid at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 12

Omar thanks

both GDI Samples you gave me is the 101sample of 2003

to convert image in to a tumbnail with the abillity to change size.

http://www.microsoft.com/downloads/details.aspx?FamilyID=08e3d5f8-033d-420b-a3b1-3074505c03f3&DisplayLang=en

No offence butt with this i can increase the size and angles and in that

i can't make a loop or something like that about rotation that i want.

About the links i gave they where for you to use as you see fit in your

Programs. I see more people asking for Glass buttons Taskbars and on.

So i thougth let safe you the search.and provide the code

and step by step walktrue as thanks for your help.

Hopes it helps you.

Regards

Nightblade.

Nightblade at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 13

Ok nightblade,

It's learning time.

Start a project.

Include a reference to system.drawing and write an import statement for it.

Pick the simplest panel possible and gently place it on your form.

Create a Paint event handler for the panel

Examine the e event arg and you'll notive that the e event arg is actually a class with methods and data one of which is a free graphic used for drawing.

Using the graphic: e.graphic play first of all with graphics.drawRectangle.

I am impressed that you said you wanted to learn and it's that spirit that spirit to which I love to resond to,

But this is your time to play.

Internal voice: I'll be there (doing graphics) soon as soon and I have a couple of complex COM calls to work correctly.

peace

ReneeC at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 14

Thanks for the Glass Button those was really nice, and 'll use em in my VISTA Project

For Graphic I really don't know a lot me also I'm having a problem

I want to make a picture (any format : JPEG, GIF...) from a label

For example I have a label with a text "Omar" and font "Verdana" so I want to make a picture with Text "Omar" and the same font

If you have an idea about that, don't hesitate

OmarAbid at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...