Re: Scrolling text in a stationary label help needed



<jcrouse1@xxxxxxxxxxx> wrote in message
news:1158773565.459114.219620@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Mike, Here is the code I settled on. I am not sure whay
the example scrolls so slowly but in my app it works
perfectly, VERY nice.

Are you *sure* this is the code you have settled on? If so then I would
advise you to change your mind straight away. I don't mean that in a nasty
sort of way. I'm just pointing out, as politely as I can, that if the code
you are using is anything like the code you just posted then you've got the
logic of it all wrong. In your example the code isn't runnng in a Timer at
all. The Timer only actually fires once in your code (the very first time)
and thereafter your Timer event code "grabs the lot" and runs in a never
ending Do Loop, inside the Timer event. The code never leaves the Timer
event. You can't simply paste a "non Tmer" version into a Timer event block.
You've got to actually program it differently. Have a look at the Timer
event code I posted yesterday (or was it the day before?) and you'll see how
it is done.

There are lots of other things wrong with the code you posted, but it really
isn't worth going into the details of them because the basic logic of it is
all wrong. Post back when you've had a look at the Timer code I posted and
compared it to your own.

Mike


.



Relevant Pages

  • Re: Timer Count Down
    ... Try putting a break-point inside the Timer event. ... Doug Steele, Microsoft Access MVP ... ExpiryDtm field in table Countdown when the form opens. ...
    (microsoft.public.access.formscoding)
  • Re: Timer Count Down
    ... What I was trying to say is that you only need the timer when you actually ... Doug Steele, Microsoft Access MVP ... ExpiryDtm field in table Countdown when the form opens. ... Inside the form's Timer event, ...
    (microsoft.public.access.formscoding)
  • Re: SetTimer question
    ... that "method" doesn' t use the timer event of the hidden form at all. ... Also, as far as I know, you can't subclasify Access main window because it ...
    (microsoft.public.vb.winapi)
  • Re: Scrolling text in a stationary label help needed
    ... Actually it's not working properly John. ... I assume that you're setting the ScaleMode of both the Form and the Picture Box to vbPixels. ... The other thing, which is very important, is the fact that your code is still not actually running in the Timer, at least not in the way it is meant to. ... You do this *just once* inside the Timer event. ...
    (microsoft.public.vb.general.discussion)
  • Re: Scrolling text in a stationary label help needed
    ... I had to add a check in the timer event to ... Dim xposition As Long ... Private Sub Form_KeyPress ... In your example the code isn't runnng in a Timer at ...
    (microsoft.public.vb.general.discussion)