Hi Canh,
Let us suppose you have a label named lblMessage dropped on a form. This label's caption is where the text of the marquee is. Then, drop a timer with an interval of let's say 10 milliseconds. On the timer event, put the following:
WITH ThisForm
.lblMessage.Left = .xLeft
.xLeft = .xLeft - 0.2000
IF .xLeft < 0 AND ABS( .xLeft ) >= .lblMessage.Width
.xLeft = .Width
ENDIF
ENDWITH
You have to put a form property xLeft. In the Init of the form, set:
This.xLeft = This.Width
Try to run it and enjoy! Hope that's what you wanted.
HTH
Dennis
>Hello all!
>I would like to make the “marquee”- similar the marquee of windows saver- in a form. Specially, the content of marquee is more than 256 characters.
>Please tell me do that.
>Thanks.
>Canh