Timer in CF + VB.net

R

rbolos

Hello,

I´m developing a Pockect Pc application with Visual Studio 2003 + Visual
Basic. My pda tester is IPAQ h3000.

I'm having problems with the timer control. When the program strat the timer
enable is set to False. When i set to true the event tick isn´t raised.

Anyone can help me?

Thanks.
 
D

Daniel Moth

What have you set the Interval to (e.g. something >1000)?

How do you know the Tick event handler isn't fired (e.g. have you set a
breakpoint)?

Post the code

Cheers
Daniel
 
R

rbolos

Hello,

I´m having test and i´ve to see that the problem is because the instruction
is set into thread. If the timer change your status enable out of a thread,
it´s run correctly.

I need to enable the timer inner thread sub.

I hope hear you soon.

Thanks.
 
D

Daniel Moth

You have to use Control.Invoke from your worker thread as soon as you need
to touch a UI control (including the Forms.Timer). Alternatively you could
switch to using the Threading.Timer.

Cheers
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top