-
Feb 26th, 2009, 01:58 AM
#1
Thread Starter
Lively Member
[RESOLVED] Timers in VB.NET App for Windows Mobile
Hello all.
I develop the application under Windows Mobile.
There are 2 forms. In secondary form, I use timer.
Then after several times, I close secondary form by .
But timer not stopped, why?
P.S. Sorry for my english.
Last edited by okosv; Feb 26th, 2009 at 02:02 AM.
-
Feb 26th, 2009, 03:38 AM
#2
Re: Timers in VB.NET App for Windows Mobile
Hey,
This question might be best asked in the Windows Mobile Forum, you can find it here:
http://www.vbforums.com/forumdisplay.php?f=70
You should maybe ask a moderator to move this post to that forum.
Gary
-
Feb 26th, 2009, 05:53 AM
#3
Thread Starter
Lively Member
Re: Timers in VB.NET App for Windows Mobile
ok, who is moderator of this forum?
-
Feb 26th, 2009, 12:24 PM
#4
Re: Timers in VB.NET App for Windows Mobile
Hey,
The Moderators for this Forum are RobDog888, kleinma. I am sure if you ask they will move the thread to the correct location.
Gary
-
Feb 26th, 2009, 12:32 PM
#5
Re: Timers in VB.NET App for Windows Mobile
Make sure to stop the timer before closing the form. The timer may run in another thread (depends on what timer object you're using) so you should stop it when you no longer need it.
Also, don't bother trying to PM a specific moderator; just report the thread and ask them to move it. I don't believe you can report your own threads (without some trickery, anyway) so I submitted one to have it moved.
-
Feb 26th, 2009, 12:49 PM
#6
Re: Timers in VB.NET App for Windows Mobile
Thread moved to "Mobile Development" forum
Also, don't bother trying to PM a specific moderator; just report the thread and ask them to move it. I don't believe you can report your own threads (without some trickery, anyway) so I submitted one to have it moved.
Exactly.
Just ignore the word "Bad" on the report icon ( to the left of each post), and the warning that it is just for spam etc - use it any time that you think a thread needs moderator/admin attention.
-
Feb 26th, 2009, 12:50 PM
#7
Re: Timers in VB.NET App for Windows Mobile
Good to know, I specifically didn't recommend that as I thought it was only for rude and abusive posts.
-
Feb 26th, 2009, 03:34 PM
#8
Frenzied Member
Re: Timers in VB.NET App for Windows Mobile
Hi,
disable the timer before closing, and if you are showing the form as a dialog, then remember to dispose of it.
-
Feb 27th, 2009, 12:29 AM
#9
Thread Starter
Lively Member
Re: Timers in VB.NET App for Windows Mobile
I did so (disable timers before closing).
But why child timers not stop automatically, when parent form is closing?
In VB6, when parent form closed, all child timers is automatically stopped.
-
Feb 27th, 2009, 12:31 AM
#10
Thread Starter
Lively Member
Re: Timers in VB.NET App for Windows Mobile
Originally Posted by si_the_geek
Thread moved to "Mobile Development" forum
Exactly.
Just ignore the word "Bad" on the report icon ( to the left of each post), and the warning that it is just for spam etc - use it any time that you think a thread needs moderator/admin attention.
Thanks a lot. Shall be kept in mind.
-
Feb 27th, 2009, 02:49 AM
#11
Frenzied Member
Re: Timers in VB.NET App for Windows Mobile
This is VB.Net though, not VB6
So - is your problem solved?
-
Feb 27th, 2009, 04:53 AM
#12
Thread Starter
Lively Member
Re: Timers in VB.NET App for Windows Mobile
-
Feb 27th, 2009, 09:30 AM
#13
Re: Timers in VB.NET App for Windows Mobile
Originally Posted by okosv
I did so (disable timers before closing).
But why child timers not stop automatically, when parent form is closing?
In VB6, when parent form closed, all child timers is automatically stopped.
This is because VB6 had no multi-threading support built in where as .Net has a large amount of support for it. Sure, there are ways to "hack-it" with VB6 but timers and such didn't really support it and just died with their parent object (your form).
-
Feb 28th, 2009, 09:03 PM
#14
Thread Starter
Lively Member
Re: Timers in VB.NET App for Windows Mobile
Originally Posted by Kasracer
This is because VB6 had no multi-threading support built in where as .Net has a large amount of support for it. Sure, there are ways to "hack-it" with VB6 but timers and such didn't really support it and just died with their parent object (your form).
ok
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|