E
Eric
Hi,
When I create a program with a form, the form doesn't go away until I close
it somehow.
How is this done, can it also be done with a module or a class?
What I seek is this:
I wrote a program that runs in a sub Main().
At this moment I use a DO WHILE LOOP to have the program do something every
5 minutes.
I didn't use a timer, I used this:
do while stop = false
ac = now.addminutes(5)
do while now < ac
...do nothing
application.doEvents()
loop
...something
loop
The problem is, it slows down the pc.
I cannot use a timer because when the sub ends, the timer is disposed.
How can I use a timer and still not a form?
How do prevent the timer object to be disposed?
How can I stay within the sub Main without slowing down the pc (actually a
PDA)?
Please help.
rg,
Eric
When I create a program with a form, the form doesn't go away until I close
it somehow.
How is this done, can it also be done with a module or a class?
What I seek is this:
I wrote a program that runs in a sub Main().
At this moment I use a DO WHILE LOOP to have the program do something every
5 minutes.
I didn't use a timer, I used this:
do while stop = false
ac = now.addminutes(5)
do while now < ac
...do nothing
application.doEvents()
loop
...something
loop
The problem is, it slows down the pc.
I cannot use a timer because when the sub ends, the timer is disposed.
How can I use a timer and still not a form?
How do prevent the timer object to be disposed?
How can I stay within the sub Main without slowing down the pc (actually a
PDA)?
Please help.
rg,
Eric