i am using Fixed Tool Window n i want my Form Caption to rotate alternate.........
any help's ?
Printable View
i am using Fixed Tool Window n i want my Form Caption to rotate alternate.........
any help's ?
What is Fixed Tool Window ?
form border styleQuote:
What is Fixed Tool Window ?
in a timer event, with interval of about 300
vb Code:
Me.Caption = Mid(Me.Caption, 2) & Left(Me.Caption, 1)
that aint working...... i just need to make form caption alternate scroll
what does that mean?Quote:
that aint working......
it does nothing or it does not do what you want
explain what you want
i tested the above code and it scrolled the caption
i put thise code....... in form load.........vb Code:
Me.Caption = Mid(Me.Caption, 2) & Left(Me.Caption, 1)
n my title bar was not scrolling !!
did you use a timer? did you set it to enabled = true? with an interval around 300
add a timer control to your form, put that code in the timer eventQuote:
i put thise code....... in form load.........
in form load put
vb Code:
timer1.interval = 300 timer1.enabled = true
sry....... i didnt put timer ........ last time !!
You need to put that in a Timer Event
Me.Caption = " " & Me.Caption
And then when it hits a certain place, like at end of title bar then start over again
Something like this
This is a very simple method and it is not to imply that it couldn't be done alot better but I dont have the time to work out a better approachCode:Private Sub Timer1_Timer()
Static counter As Integer
counter = counter + 1
If counter = somevalue Then
counter = 0
Caption = LTrim(Caption)
Else
Caption = " " & Caption
End If
End Sub
thnx !!
why that when the text reach the last end of the form title bar it doesnt scroll again like it must start over again when it reach at the end of title bar?
TY i been resolved it perfectly by myself ^_* cheer good job..
Well after more than a year and half I would hope so.