Computing.Net > Forums > Programming > VB.NET, and Timers

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB.NET, and Timers

Reply to Message Icon

Name: MTec007
Date: July 16, 2008 at 11:23:42 Pacific
OS: XP Home 2002 SP3
CPU/Ram: Celeron M 1.30GHz/25
Product: Dell Inspirn 1200
Comment:

I have a small timer function to create a marquee effect in the titlebar. it works but it keeps the application busy so that the window can not be exited or moved. the timer is making the app use 24000K Mem usage
is there a fix to this code?
code:
Timer2.Interval = 500
Private Sub Timer2_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer2.Elapsed
If Not (intPosition <= strScrollText.Length) Then
intPosition = 0
End If
Me.Text = strScrollText.Substring(intPosition) & strScrollText
intPosition = intPosition + 1
End Su



Sponsored Link
Ads by Google

Response Number 1
Name: MTec007
Date: July 16, 2008 at 14:05:40 Pacific
Reply:

never mind. had a second timer set at 100 that looped continuously due to a bug


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB.NET, and Timers

Question Regarding VB.net and C# www.computing.net/answers/programming/question-regarding-vbnet-and-c/3580.html

VB.NET and C DLL's www.computing.net/answers/programming/vbnet-and-c-dlls/9509.html

vb.net and db www.computing.net/answers/programming/vbnet-and-db/14385.html